| 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..b8c218b1e8312123326b68eaff445bac48e226dd 100644
|
| --- a/chrome/browser/resources/ntp4/new_tab.js
|
| +++ b/chrome/browser/resources/ntp4/new_tab.js
|
| @@ -359,12 +359,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-container').hidden = false;
|
| + $('login-status-icon').src = icon_url;
|
| + } else {
|
| + $('login-status-icon-container').hidden = true;
|
| + }
|
| } else {
|
| $('login-container').hidden = true;
|
| $('card-slider-frame').classList.remove('showing-login-area');
|
| @@ -373,6 +380,8 @@ cr.define('ntp4', function() {
|
| window.setTimeout(loginBubble.show.bind(loginBubble), 0);
|
| chrome.send('loginMessageSeen');
|
| shouldShowLoginBubble = false;
|
| + } else if (loginBubble) {
|
| + loginBubble.reposition();
|
| }
|
| }
|
|
|
|
|