| 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 53f3a53022cdb132620cf63f1dc5837b6b2e8fac..dbf25cd67f3e23ec993233afb019d1d7f2eef6d9 100644
|
| --- a/chrome/browser/resources/ntp4/new_tab.js
|
| +++ b/chrome/browser/resources/ntp4/new_tab.js
|
| @@ -358,13 +358,24 @@ cr.define('ntp4', function() {
|
| * the login container is hidden.
|
| * @param {string} loginHeader The first line of text.
|
| * @param {string} loginSubHeader The second line of text.
|
| + * @param {string} iconURL The url for the login status icon. If this is null
|
| + then the login status icon is hidden.
|
| */
|
| - function updateLogin(loginHeader, loginSubHeader) {
|
| + function updateLogin(loginHeader, loginSubHeader, iconURL) {
|
| 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 (iconURL) {
|
| + $('login-status-header-container').style.backgroundImage = url(iconURL);
|
| + $('login-status-header-container').classList.add('login-status-icon');
|
| + } else {
|
| + $('login-status-header-container').style.backgroundImage = 'none';
|
| + $('login-status-header-container').classList.remove(
|
| + 'login-status-icon');
|
| + }
|
| } else {
|
| $('login-container').hidden = true;
|
| $('card-slider-frame').classList.remove('showing-login-area');
|
| @@ -373,6 +384,8 @@ cr.define('ntp4', function() {
|
| window.setTimeout(loginBubble.show.bind(loginBubble), 0);
|
| chrome.send('loginMessageSeen');
|
| shouldShowLoginBubble = false;
|
| + } else if (loginBubble) {
|
| + loginBubble.reposition();
|
| }
|
| }
|
|
|
|
|