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

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

Issue 12038090: Layout the NTP footer with flexboxes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/ntp4/other_sessions.js
diff --git a/chrome/browser/resources/ntp4/other_sessions.js b/chrome/browser/resources/ntp4/other_sessions.js
index e536e6ef3d51b6cbbba29352abb6f416cd9e652f..8386bb80e00dad145194c582971e61758284c93b 100644
--- a/chrome/browser/resources/ntp4/other_sessions.js
+++ b/chrome/browser/resources/ntp4/other_sessions.js
@@ -245,7 +245,10 @@ cr.define('ntp', function() {
}
// The menu button is shown iff tab sync is enabled.
- this.hidden = !isTabSyncEnabled;
+ if (isTabSyncEnabled)
Dan Beam 2013/01/31 20:22:11 if we end up keeping .invisible this.classList.
dconnelly 2013/02/04 16:40:45 This doesn't work. It coerces the first argument
Dan Beam 2013/02/04 19:01:10 sorry, meant: this.classList.toggle('invisible', i
+ this.classList.remove('invisible');
+ else
+ this.classList.add('invisible');
},
/**
@@ -257,7 +260,7 @@ cr.define('ntp', function() {
if (signedIn)
chrome.send('getForeignSessions');
else
- this.hidden = true;
+ this.classList.add('invisible');
},
};

Powered by Google App Engine
This is Rietveld 408576698