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