summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/md_extensions/navigation_helper.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/md_extensions/navigation_helper.js')
-rw-r--r--chromium/chrome/browser/resources/md_extensions/navigation_helper.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/chromium/chrome/browser/resources/md_extensions/navigation_helper.js b/chromium/chrome/browser/resources/md_extensions/navigation_helper.js
index e4efc690d4b..f58d72157e3 100644
--- a/chromium/chrome/browser/resources/md_extensions/navigation_helper.js
+++ b/chromium/chrome/browser/resources/md_extensions/navigation_helper.js
@@ -75,16 +75,14 @@ cr.define('extensions', function() {
}
/**
- * If you're not a guest, going to /configureCommands and /shortcuts should
- * land you on /shortcuts. These are the only two supported routes, so all
- * other cases (guest or not) will redirect you to root path if not already
- * on it.
+ * Going to /configureCommands and /shortcuts should land you on /shortcuts.
+ * These are the only two supported routes, so all other cases will redirect
+ * you to root path if not already on it.
* @private
*/
processRoute_() {
- if (!loadTimeData.getBoolean('isGuest') &&
- (this.currentPath_ == '/configureCommands' ||
- this.currentPath_ == '/shortcuts')) {
+ if (this.currentPath_ == '/configureCommands' ||
+ this.currentPath_ == '/shortcuts') {
window.history.replaceState(
undefined /* stateObject */, '', '/shortcuts');
} else if (this.currentPath_ !== '/') {