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 4c1ac76f31e05b1452ab5257f70d49db5c2954f6..c4aca6e3ea4fbdf36c83ab9baa76914d0dfad530 100644 |
--- a/chrome/browser/resources/ntp4/new_tab.js |
+++ b/chrome/browser/resources/ntp4/new_tab.js |
@@ -56,12 +56,6 @@ cr.define('ntp', function() { |
var shouldShowLoginBubble = false; |
/** |
- * The 'other-sessions-menu-button' element. |
- * @type {!ntp.OtherSessionsMenuButton|undefined} |
- */ |
- var otherSessionsButton; |
- |
- /** |
* The time when all sections are ready. |
* @type {number|undefined} |
* @private |
@@ -148,15 +142,6 @@ cr.define('ntp', function() { |
notificationContainer.addEventListener( |
'webkitTransitionEnd', onNotificationTransitionEnd); |
- if (loadTimeData.getBoolean('showOtherSessionsMenu')) { |
- otherSessionsButton = /** @type {!ntp.OtherSessionsMenuButton} */( |
- getRequiredElement('other-sessions-menu-button')); |
- cr.ui.decorate(otherSessionsButton, ntp.OtherSessionsMenuButton); |
- otherSessionsButton.initialize(loadTimeData.getBoolean('isUserSignedIn')); |
- } else { |
- getRequiredElement('other-sessions-menu-button').hidden = true; |
- } |
- |
if (loadTimeData.getBoolean('showMostvisited')) { |
var mostVisited = new ntp.MostVisitedPage(); |
// Move the footer into the most visited page if we are in "bare minimum" |
@@ -575,10 +560,6 @@ cr.define('ntp', function() { |
} else if (loginBubble) { |
loginBubble.reposition(); |
} |
- if (otherSessionsButton) { |
- otherSessionsButton.updateSignInState(isUserSignedIn); |
- layoutFooter(); |
- } |
} |
/** |
@@ -664,13 +645,6 @@ cr.define('ntp', function() { |
newTabView.enterRearrangeMode(); |
} |
- function setForeignSessions(sessionList, isTabSyncEnabled) { |
- if (otherSessionsButton) { |
- otherSessionsButton.setForeignSessions(sessionList, isTabSyncEnabled); |
- layoutFooter(); |
- } |
- } |
- |
/** |
* Callback invoked by chrome with the apps available. |
* |
@@ -736,7 +710,6 @@ cr.define('ntp', function() { |
saveAppPageName: saveAppPageName, |
setAppToBeHighlighted: setAppToBeHighlighted, |
setBookmarkBarAttached: setBookmarkBarAttached, |
- setForeignSessions: setForeignSessions, |
setMostVisitedPages: setMostVisitedPages, |
setFaviconDominantColor: setFaviconDominantColor, |
showNotification: showNotification, |