| 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 621157ee7f597d4c29cb691793ae844d09742c0c..4cdd44e2286b3919fcdaf92a6ac6735a32735a36 100644
|
| --- a/chrome/browser/resources/ntp4/new_tab.js
|
| +++ b/chrome/browser/resources/ntp4/new_tab.js
|
| @@ -261,15 +261,22 @@ cr.define('ntp4', function() {
|
| document.querySelector('head').appendChild(styleElement);
|
| }
|
|
|
| - // TODO(estade): rename newtab.css to new_tab_theme.css
|
| - function themeChanged(hasAttribution) {
|
| - $('themecss').href = 'chrome://theme/css/newtab.css?' + Date.now();
|
| - if (typeof hasAttribution != 'undefined')
|
| - document.documentElement.setAttribute('hasattribution', hasAttribution);
|
| + function themeChanged(opt_hasAttribution) {
|
| + $('themecss').href = 'chrome://theme/css/new_tab_theme.css?' + Date.now();
|
| +
|
| + if (typeof opt_hasAttribution != 'undefined') {
|
| + document.documentElement.setAttribute('hasattribution',
|
| + opt_hasAttribution);
|
| + }
|
| +
|
| updateLogo();
|
| updateAttribution();
|
| }
|
|
|
| + function setBookmarkBarAttached(attached) {
|
| + document.documentElement.setAttribute('bookmarkbarattached', attached);
|
| + }
|
| +
|
| /**
|
| * Sets the proper image for the logo at the bottom left.
|
| */
|
| @@ -539,6 +546,7 @@ cr.define('ntp4', function() {
|
| leaveRearrangeMode: leaveRearrangeMode,
|
| saveAppPageName: saveAppPageName,
|
| setAppToBeHighlighted: setAppToBeHighlighted,
|
| + setBookmarkBarAttached: setBookmarkBarAttached,
|
| setMostVisitedPages: setMostVisitedPages,
|
| setRecentlyClosedTabs: setRecentlyClosedTabs,
|
| setStripeColor: setStripeColor,
|
|
|