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

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

Issue 7337007: Introduce a field trial for Instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added opt-out histogram Created 9 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/options/instant_confirm_overlay.js
diff --git a/chrome/browser/resources/options/instant_confirm_overlay.js b/chrome/browser/resources/options/instant_confirm_overlay.js
index 9f983c7518a974e49d841c6568ae91c6c2d429a6..01a9ee5025bd6fffa3fed9cda29f389df748f536 100644
--- a/chrome/browser/resources/options/instant_confirm_overlay.js
+++ b/chrome/browser/resources/options/instant_confirm_overlay.js
@@ -22,13 +22,12 @@ cr.define('options', function() {
$('instantConfirmCancel').onclick = function() {
OptionsPage.closeOverlay();
+ $('instantEnabledCheckbox').checked = false;
};
+
$('instantConfirmOk').onclick = function() {
OptionsPage.closeOverlay();
- Preferences.setBooleanPref('instant.confirm_dialog_shown', true);
- var instantEnabledCheckbox = $('instantEnableCheckbox');
- Preferences.setBooleanPref(instantEnableCheckbox.pref, true,
- instantEnableCheckbox.metric);
+ chrome.send('enableInstant');
};
},
};

Powered by Google App Engine
This is Rietveld 408576698