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