diff options
Diffstat (limited to 'chromium/chrome/browser/resources/uber/uber_frame.js')
-rw-r--r-- | chromium/chrome/browser/resources/uber/uber_frame.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/chromium/chrome/browser/resources/uber/uber_frame.js b/chromium/chrome/browser/resources/uber/uber_frame.js index bef246caafb..1b3e967f5af 100644 --- a/chromium/chrome/browser/resources/uber/uber_frame.js +++ b/chromium/chrome/browser/resources/uber/uber_frame.js @@ -105,14 +105,11 @@ cr.define('uber_frame', function() { * Shows nav items belonging to the same group as the selected item. */ function showNavItems() { - var navItems = document.querySelectorAll('li'); - var selectedNavItem = getSelectedNavItem(); - assert(selectedNavItem); - - var selectedGroup = selectedNavItem.getAttribute('group'); - for (var i = 0; i < navItems.length; ++i) { - navItems[i].hidden = navItems[i].getAttribute('group') != selectedGroup; - } + var hideSettingsAndHelp = loadTimeData.getBoolean('hideSettingsAndHelp'); + $('settings').hidden = hideSettingsAndHelp; + $('help').hidden = hideSettingsAndHelp; + $('extensions').hidden = loadTimeData.getBoolean('hideExtensions'); + $('history').hidden = loadTimeData.getBoolean('hideHistory'); } /** |