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

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

Issue 2957153003: MD Settings: remove unsupported routes from guest-mode. (Closed)
Patch Set: safeguard all settings.routes.[ROUTE]. dereferencing 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 54c52a09077295a36991c5aafa04f046fc641d1f..bb43d0d4bf720ec88ff5a70b186baf4db8ce27c6 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