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 */ |