Commit 6f813ad4 authored by Charlie Harrison's avatar Charlie Harrison Committed by Commit Bot

Condition net_internals #chromeos view on the current platform

Currently, we hide the item from the tab switcher, but direct navigations
still navigate to the chromeos page. This CL handles the direct
navigation case.

Bug: 957005
Change-Id: I4d55b064557879f45f6df510d042e2c78424993a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1893139
Commit-Queue: Charlie Harrison <csharrison@chromium.org>
Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#711323}
parent e43392d3
......@@ -128,6 +128,11 @@ const MainView = (function() {
parsed.tabHash = EventsView.TAB_HASH;
}
// Don't switch to the chromeos view if not on chromeos.
if (!cr.isChromeOS && parsed.tabHash == '#chromeos') {
parsed.tabHash = EventsView.TAB_HASH;
}
if (!parsed.tabHash) {
// Default to the events tab.
parsed.tabHash = EventsView.TAB_HASH;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment