Upstream version 7.35.139.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / options / pref_ui.js
index 0775306..b4f2830 100644 (file)
@@ -160,6 +160,11 @@ cr.define('options', function() {
     decorate: function() {
       PrefInputElement.prototype.decorate.call(this);
       this.type = 'checkbox';
+
+      // Consider a checked dialog checkbox as a 'suggestion' which is committed
+      // once the user confirms the dialog.
+      if (this.dialogPref && this.checked)
+        this.updatePrefFromState_();
     },
 
     /**