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

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

Issue 2957153003: MD Settings: remove unsupported routes from guest-mode. (Closed)
Patch Set: merge Created 3 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/settings/search_page/search_page.js
diff --git a/chrome/browser/resources/settings/search_page/search_page.js b/chrome/browser/resources/settings/search_page/search_page.js
index 3ac09461a1719c08adb59b4a8249ca298da4e4be..54d2e8349782ca1349e281c8e34c30151e1f338b 100644
--- a/chrome/browser/resources/settings/search_page/search_page.js
+++ b/chrome/browser/resources/settings/search_page/search_page.js
@@ -75,8 +75,11 @@ Polymer({
}.bind(this));
this.focusConfig_ = new Map();
- this.focusConfig_.set(
- settings.Route.SEARCH_ENGINES.path, '#subpage-trigger .subpage-arrow');
+ if (settings.routes.SEARCH_ENGINES) {
+ this.focusConfig_.set(
+ settings.routes.SEARCH_ENGINES.path,
+ '#subpage-trigger .subpage-arrow');
+ }
},
/** @private */
@@ -93,7 +96,7 @@ Polymer({
/** @private */
onManageSearchEnginesTap_: function() {
- settings.navigateTo(settings.Route.SEARCH_ENGINES);
+ settings.navigateTo(settings.routes.SEARCH_ENGINES);
},
/**

Powered by Google App Engine
This is Rietveld 408576698