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

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

Issue 6980010: Options: Disconnect the Instant option from the search engine select. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 589b88bbe9f23d4e3a439975e0ab9226376ebced..2a6f98f3baaabce18ed8538dfb9ca602beb5d1e3 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -203,15 +203,12 @@ cr.define('options', function() {
for (var i = 0; i < engineCount; i++) {
var engine = engines[i];
var option = new Option(engine['name'], engine['index']);
- option.hasInstant = engine['hasInstant'];
if (defaultValue == option.value)
defaultIndex = i;
engineSelect.appendChild(option);
}
if (defaultIndex >= 0)
engineSelect.selectedIndex = defaultIndex;
-
- this.setDefaultSearchEngine_();
},
/**
@@ -425,7 +422,6 @@ cr.define('options', function() {
var selectedIndex = engineSelect.selectedIndex;
if (selectedIndex >= 0) {
var selection = engineSelect.options[selectedIndex];
- $('instantEnableCheckbox').disabled = !selection.hasInstant;
chrome.send('setDefaultSearchEngine', [String(selection.value)]);
}
},
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698