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

Unified Diff: chrome/browser/resources/options/spelling_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/spelling_confirm_overlay.js
diff --git a/chrome/browser/resources/options/spelling_confirm_overlay.js b/chrome/browser/resources/options/spelling_confirm_overlay.js
index 2458d0c21831e9cdcbca475d89aa5fdb3d768e9d..12bccc4d9cdc42beb4ff3612a3f8a085885fdcf3 100644
--- a/chrome/browser/resources/options/spelling_confirm_overlay.js
+++ b/chrome/browser/resources/options/spelling_confirm_overlay.js
@@ -33,10 +33,13 @@ cr.define('options', function() {
/** @inheritDoc */
handleConfirm: function() {
SettingsDialog.prototype.handleConfirm.call(this);
- Preferences.setBooleanPref('spellcheck.use_spelling_service',
- true, true);
Preferences.setBooleanPref('spellcheck.confirm_dialog_shown',
true, true);
+ var pref = 'spellcheck.use_spelling_service';
+ 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