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

Unified Diff: chrome/browser/resources/uber/uber_frame.js

Issue 2830983005: Remove old webui History page on desktop and mobile (Closed)
Patch Set: axe more android stuff Created 3 years, 8 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/uber/uber_frame.js
diff --git a/chrome/browser/resources/uber/uber_frame.js b/chrome/browser/resources/uber/uber_frame.js
index 8bcbca418a1b3d9b53ca83f79e8317a7d1dcaf3b..b60feaed92be1a9d7de0b377608920225aa66547 100644
--- a/chrome/browser/resources/uber/uber_frame.js
+++ b/chrome/browser/resources/uber/uber_frame.js
@@ -42,14 +42,6 @@ cr.define('uber_frame', function() {
if (e.target.classList.contains('selected'))
return;
- // Extensions can override Uber content (e.g., if the user has a history
- // extension, it should display when the 'History' navigation is clicked).
- if (e.currentTarget.getAttribute('override') == 'yes') {
- window.open('chrome://' + e.currentTarget.getAttribute('controls'),
- '_blank');
- return;
- }
-
uber.invokeMethodOnParent('showPage',
{pageId: e.currentTarget.getAttribute('controls')});
@@ -109,7 +101,6 @@ cr.define('uber_frame', function() {
$('settings').hidden = hideSettingsAndHelp;
$('help').hidden = hideSettingsAndHelp;
$('extensions').hidden = loadTimeData.getBoolean('hideExtensions');
- $('history').hidden = loadTimeData.getBoolean('hideHistory');
}
/**
@@ -158,25 +149,7 @@ cr.define('uber_frame', function() {
return document.querySelector('.iframe-container.selected');
}
- /**
- * Finds the <li> element whose 'controls' attribute is |controls| and sets
- * its 'override' attribute to |override|.
- * @param {string} controls The value of the 'controls' attribute of the
- * element to change.
- * @param {string} override The value to set for the 'override' attribute of
- * that element (either 'yes' or 'no').
- */
- function setNavigationOverride(controls, override) {
- var navItem =
- document.querySelector('li[controls="' + controls + '"]');
- navItem.setAttribute('override', override);
- }
-
- return {
- onLoad: onLoad,
- setNavigationOverride: setNavigationOverride,
- };
-
+ return {onLoad: onLoad};
});
document.addEventListener('DOMContentLoaded', uber_frame.onLoad);

Powered by Google App Engine
This is Rietveld 408576698