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

Unified Diff: chrome/browser/resources/options2/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: Fix my rushed copy & paste :( Created 8 years, 5 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/options2/spelling_confirm_overlay.js
diff --git a/chrome/browser/resources/options2/spelling_confirm_overlay.js b/chrome/browser/resources/options2/spelling_confirm_overlay.js
index 86e6598016d6440532e525f725edc3c1d650a187..34b0322929f3938b1dd18d8e946e954335782cb2 100644
--- a/chrome/browser/resources/options2/spelling_confirm_overlay.js
+++ b/chrome/browser/resources/options2/spelling_confirm_overlay.js
@@ -32,8 +32,12 @@ 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,
James Hawkins 2012/08/02 20:33:32 Optional nit: Condense parameters.
bartfab (slow) 2012/08/31 14:14:30 Done.
+ true);
+ Preferences.setBooleanPref('spellcheck.confirm_dialog_shown',
+ true,
+ true);
},
/** @inheritDoc */

Powered by Google App Engine
This is Rietveld 408576698