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

Unified Diff: chrome/browser/resources/settings/settings_main/settings_main.js

Issue 2449663002: MD Settings: Implement search URLs. (Closed)
Patch Set: Fix test. Created 4 years, 1 month 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/resources/settings/settings_ui/compiled_resources2.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/settings_main/settings_main.js
diff --git a/chrome/browser/resources/settings/settings_main/settings_main.js b/chrome/browser/resources/settings/settings_main/settings_main.js
index d090cdedbb16ce619799256543678264361d0e9d..929f94a04a2d6e41c76372a3750f3772f4de849e 100644
--- a/chrome/browser/resources/settings/settings_main/settings_main.js
+++ b/chrome/browser/resources/settings/settings_main/settings_main.js
@@ -313,22 +313,12 @@ Polymer({
},
/**
- * Navigates to the default search page (if necessary).
- * @private
- */
- ensureInDefaultSearchPage_: function() {
- if (settings.getCurrentRoute() != settings.Route.BASIC)
- settings.navigateTo(settings.Route.BASIC);
- },
-
- /**
* @param {string} query
* @return {!Promise} A promise indicating that searching finished.
*/
searchContents: function(query) {
// Trigger rendering of the basic and advanced pages and search once ready.
this.inSearchMode_ = true;
- this.ensureInDefaultSearchPage_();
this.toolbarSpinnerActive = true;
return new Promise(function(resolve, reject) {
« no previous file with comments | « no previous file | chrome/browser/resources/settings/settings_ui/compiled_resources2.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698