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

Unified Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_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/bluetooth_page/bluetooth_page.js
diff --git a/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js b/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
index 104106c15991117d5367b5d9e6aa983a11c99848..35b5c4399dbdfb8dac6792165a6a17430a04c014 100644
--- a/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
+++ b/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js
@@ -70,9 +70,11 @@ Polymer({
type: Object,
value: function() {
var map = new Map();
- map.set(
- settings.Route.BLUETOOTH_DEVICES.path,
- '#bluetoothDevices .subpage-arrow');
+ if (settings.routes.BLUETOOTH_DEVICES) {
+ map.set(
+ settings.routes.BLUETOOTH_DEVICES.path,
+ '#bluetoothDevices .subpage-arrow');
+ }
return map;
},
},
@@ -212,6 +214,6 @@ Polymer({
/** @private */
openSubpage_: function() {
- settings.navigateTo(settings.Route.BLUETOOTH_DEVICES);
+ settings.navigateTo(settings.routes.BLUETOOTH_DEVICES);
}
});

Powered by Google App Engine
This is Rietveld 408576698