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

Unified Diff: chrome/browser/resources/ntp4/new_tab.js

Issue 1130753007: Start axing NTP4 dead code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: estade@ review Created 5 years, 7 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
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.html ('k') | chrome/browser/resources/ntp4/recently_closed.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/new_tab.js
diff --git a/chrome/browser/resources/ntp4/new_tab.js b/chrome/browser/resources/ntp4/new_tab.js
index 6d90cf5358673d6559905e98bba63b0fe98957be..007bd039a0a14418740960f88b2654b98f946489 100644
--- a/chrome/browser/resources/ntp4/new_tab.js
+++ b/chrome/browser/resources/ntp4/new_tab.js
@@ -150,14 +150,6 @@ cr.define('ntp', function() {
notificationContainer.addEventListener(
'webkitTransitionEnd', onNotificationTransitionEnd);
- if (loadTimeData.getBoolean('showRecentlyClosed')) {
- cr.ui.decorate(getRequiredElement('recently-closed-menu-button'),
- ntp.RecentMenuButton);
- chrome.send('getRecentlyClosedTabs');
- } else {
- $('recently-closed-menu-button').hidden = true;
- }
-
if (loadTimeData.getBoolean('showOtherSessionsMenu')) {
otherSessionsButton = /** @type {!ntp.OtherSessionsMenuButton} */(
getRequiredElement('other-sessions-menu-button'));
@@ -546,11 +538,6 @@ cr.define('ntp', function() {
notificationContainer.hidden = true;
}
- function setRecentlyClosedTabs(dataItems) {
- $('recently-closed-menu-button').dataItems = dataItems;
- layoutFooter();
- }
-
/**
* @param {Array<PageData>} data
* @param {boolean} hasBlacklistedUrls
@@ -773,7 +760,6 @@ cr.define('ntp', function() {
setForeignSessions: setForeignSessions,
setMostVisitedPages: setMostVisitedPages,
setSuggestionsPages: setSuggestionsPages,
- setRecentlyClosedTabs: setRecentlyClosedTabs,
setFaviconDominantColor: setFaviconDominantColor,
showNotification: showNotification,
themeChanged: themeChanged,
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.html ('k') | chrome/browser/resources/ntp4/recently_closed.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698