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

Unified Diff: chrome/browser/resources/settings/device_page/storage.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/device_page/storage.js
diff --git a/chrome/browser/resources/settings/device_page/storage.js b/chrome/browser/resources/settings/device_page/storage.js
index 47c52115dc6d1dd624a53d2e85febc3c259c8345..0e592fc1b49b9e0d739b2890034e4e3b3eac1651 100644
--- a/chrome/browser/resources/settings/device_page/storage.js
+++ b/chrome/browser/resources/settings/device_page/storage.js
@@ -107,7 +107,7 @@ Polymer({
* @protected
*/
currentRouteChanged: function() {
- if (settings.getCurrentRoute() == settings.Route.STORAGE)
+ if (settings.getCurrentRoute() == settings.routes.STORAGE)
this.onPageShown_();
},
@@ -144,7 +144,7 @@ Polymer({
* @private
*/
onBrowsingDataTap_: function() {
- settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA);
+ settings.navigateTo(settings.routes.CLEAR_BROWSER_DATA);
},
/**
@@ -160,7 +160,7 @@ Polymer({
* @private
*/
onOtherUsersTap_: function() {
- settings.navigateTo(settings.Route.ACCOUNTS);
+ settings.navigateTo(settings.routes.ACCOUNTS);
},
/**
@@ -247,7 +247,7 @@ Polymer({
// We update the storage usage every 5 seconds.
if (this.updateTimerId_ == -1) {
this.updateTimerId_ = window.setInterval(function() {
- if (settings.getCurrentRoute() != settings.Route.STORAGE) {
+ if (settings.getCurrentRoute() != settings.routes.STORAGE) {
this.stopPeriodicUpdate_();
return;
}

Powered by Google App Engine
This is Rietveld 408576698