summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/ntp4/new_tab.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/ntp4/new_tab.js')
-rw-r--r--chrome/browser/resources/ntp4/new_tab.js18
1 files changed, 13 insertions, 5 deletions
diff --git a/chrome/browser/resources/ntp4/new_tab.js b/chrome/browser/resources/ntp4/new_tab.js
index 621157e..4cdd44e 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,