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

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

Issue 11475028: Add new instant extended specific pref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed last OWNERS comments. Created 8 years 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/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index 7ac6f17a521471c5f2ae3434dac3c0ee82a70698..b6f10f52d23714cc44c2cf18b2542449a853aabd 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -158,6 +158,12 @@ cr.define('options', function() {
};
$('default-search-engine').addEventListener('change',
this.setDefaultSearchEngine_);
+ if (loadTimeData.getValue('instant_enabled') ==
+ 'instant_extended.enabled') {
+ // We don't want to see the confirm dialog for instant extended.
+ $('instant-enabled-control').removeAttribute('dialog-pref');
+ $('instant-enabled-indicator').removeAttribute('dialog-pref');
+ }
// Users section.
if (loadTimeData.valueExists('profilesInfo')) {
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/browser/ui/browser_instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698