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

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

Issue 10827141: Move handling of dialog preferences to Preferences class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed PrefCheckbox. Created 8 years, 3 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 86e6598016d6440532e525f725edc3c1d650a187..aa57db7d58c9e601e4a7580b88c5a78d70dfafca 100644
--- a/chrome/browser/resources/options/spelling_confirm_overlay.js
+++ b/chrome/browser/resources/options/spelling_confirm_overlay.js
@@ -32,8 +32,10 @@ cr.define('options', function() {
/** @inheritDoc */
handleConfirm: function() {
SettingsDialog.prototype.handleConfirm.call(this);
- Preferences.setBooleanPref('spellcheck.use_spelling_service', true);
- Preferences.setBooleanPref('spellcheck.confirm_dialog_shown', true);
+ Preferences.setBooleanPref('spellcheck.use_spelling_service',
+ true, true);
+ Preferences.setBooleanPref('spellcheck.confirm_dialog_shown',
+ true, true);
},
/** @inheritDoc */
« no previous file with comments | « chrome/browser/resources/options/settings_dialog.js ('k') | chrome/browser/ui/webui/options/core_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698