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

Unified Diff: chrome/browser/resources/options2/instant_confirm_overlay.js

Issue 10836031: Remove Instant v1 API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update history, title, favicon Created 8 years, 4 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/instant_confirm_overlay.js
diff --git a/chrome/browser/resources/options2/instant_confirm_overlay.js b/chrome/browser/resources/options2/instant_confirm_overlay.js
index c1890ec95bed9b3725bc7668a91de3c8391cf0b7..6cadd5c30a22de1efaa631c98ec239ede29314ae 100644
--- a/chrome/browser/resources/options2/instant_confirm_overlay.js
+++ b/chrome/browser/resources/options2/instant_confirm_overlay.js
@@ -32,7 +32,8 @@ cr.define('options', function() {
/** @inheritDoc */
handleConfirm: function() {
SettingsDialog.prototype.handleConfirm.call(this);
- chrome.send('enableInstant');
+ Preferences.setBooleanPref('instant.confirm_dialog_shown', true);
+ Preferences.setBooleanPref('instant.enabled', true);
},
/** @inheritDoc */
« no previous file with comments | « chrome/browser/resources/options2/browser_options.js ('k') | chrome/browser/ui/browser_instant_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698