Index: chrome/browser/resources/settings/site_settings/site_data.js |
diff --git a/chrome/browser/resources/settings/site_settings/site_data.js b/chrome/browser/resources/settings/site_settings/site_data.js |
index 690eaabab6c0c9de3cf1c915cc0ea73857813c46..0d0b1a760a439d4fbbb21907cd70672ea8f72f3c 100644 |
--- a/chrome/browser/resources/settings/site_settings/site_data.js |
+++ b/chrome/browser/resources/settings/site_settings/site_data.js |
@@ -55,9 +55,11 @@ Polymer({ |
// Populate the |focusConfig| map of the parent <settings-animated-pages> |
// element, with additional entries that correspond to subpage trigger |
// elements residing in this element's Shadow DOM. |
- this.focusConfig.set( |
- settings.Route.SITE_SETTINGS_DATA_DETAILS.path, |
- '* /deep/ #filter /deep/ #searchInput'); |
+ if (settings.routes.SITE_SETTINGS_DATA_DETAILS) { |
+ this.focusConfig.set( |
+ settings.routes.SITE_SETTINGS_DATA_DETAILS.path, |
+ '* /deep/ #filter /deep/ #searchInput'); |
+ } |
}, |
/** @override */ |
@@ -160,7 +162,7 @@ Polymer({ |
*/ |
onSiteTap_: function(event) { |
settings.navigateTo( |
- settings.Route.SITE_SETTINGS_DATA_DETAILS, |
+ settings.routes.SITE_SETTINGS_DATA_DETAILS, |
new URLSearchParams('site=' + event.model.item.site)); |
}, |
}); |