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

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

Issue 8511064: GAIA Profile info prototype (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test Created 9 years, 1 month 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/sync/internal_api/sync_manager.cc » ('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 981476b0de196da0602a2ae280859b4947626b68..73cd7aea1976570f3b3efd800cb189df08b4be86 100644
--- a/chrome/browser/resources/ntp4/new_tab.js
+++ b/chrome/browser/resources/ntp4/new_tab.js
@@ -964,12 +964,19 @@ cr.define('ntp4', function() {
* @param {string} loginHeader The first line of text.
* @param {string} loginSubHeader The second line of text.
*/
- function updateLogin(loginHeader, loginSubHeader) {
+ function updateLogin(loginHeader, loginSubHeader, icon_url) {
if (loginHeader || loginSubHeader) {
$('login-container').hidden = false;
$('login-status-header').innerHTML = loginHeader;
$('login-status-sub-header').innerHTML = loginSubHeader;
$('card-slider-frame').classList.add('showing-login-area');
+
+ if (icon_url) {
+ $('login-status-icon').hidden = false;
+ $('login-status-icon').src = icon_url;
+ } else {
+ $('login-status-icon').hidden = true;
+ }
} else {
$('login-container').hidden = true;
$('card-slider-frame').classList.remove('showing-login-area');
@@ -978,6 +985,8 @@ cr.define('ntp4', function() {
window.setTimeout(loginBubble.show.bind(loginBubble), 0);
chrome.send('loginMessageSeen');
shouldShowLoginBubble = false;
+ } else if (loginBubble) {
+ loginBubble.reposition();
}
}
« no previous file with comments | « chrome/browser/resources/ntp4/new_tab.html ('k') | chrome/browser/sync/internal_api/sync_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698