Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: chrome/browser/resources/options/instant_confirm_overlay.js

Issue 11232046: Add fifth batch of controlled setting indicators (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/instant_confirm_overlay.js
diff --git a/chrome/browser/resources/options/instant_confirm_overlay.js b/chrome/browser/resources/options/instant_confirm_overlay.js
index db0a37ef2b4ec63ac3ab12b22f2e68f8150f0689..dc91a6cc3f8ae5616fd944de8564a9338d329007 100644
--- a/chrome/browser/resources/options/instant_confirm_overlay.js
+++ b/chrome/browser/resources/options/instant_confirm_overlay.js
@@ -33,7 +33,11 @@ cr.define('options', function() {
handleConfirm: function() {
SettingsDialog.prototype.handleConfirm.call(this);
Preferences.setBooleanPref('instant.confirm_dialog_shown', true, true);
- Preferences.setBooleanPref('instant.enabled', true, true);
+ var pref = 'instant.enabled';
+ if (this.confirming_follow_recommendation)
+ Preferences.clearPref(pref, true);
+ else
+ Preferences.setBooleanPref(pref, true, true);
},
/** @inheritDoc */

Powered by Google App Engine
This is Rietveld 408576698