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

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

Issue 1140813003: NTP Zombie Code Slayer III, The Saga Continues: Foreign Sessions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@suggestions-page
Patch Set: 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/other_sessions.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 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,
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.html ('k') | chrome/browser/resources/ntp4/other_sessions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698