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, 5 insertions, 13 deletions
diff --git a/chrome/browser/resources/ntp4/new_tab.js b/chrome/browser/resources/ntp4/new_tab.js
index 4cdd44e..621157e 100644
--- a/chrome/browser/resources/ntp4/new_tab.js
+++ b/chrome/browser/resources/ntp4/new_tab.js
@@ -261,22 +261,15 @@ cr.define('ntp4', function() {
document.querySelector('head').appendChild(styleElement);
}
- 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);
- }
-
+ // 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);
updateLogo();
updateAttribution();
}
- function setBookmarkBarAttached(attached) {
- document.documentElement.setAttribute('bookmarkbarattached', attached);
- }
-
/**
* Sets the proper image for the logo at the bottom left.
*/
@@ -546,7 +539,6 @@ cr.define('ntp4', function() {
leaveRearrangeMode: leaveRearrangeMode,
saveAppPageName: saveAppPageName,
setAppToBeHighlighted: setAppToBeHighlighted,
- setBookmarkBarAttached: setBookmarkBarAttached,
setMostVisitedPages: setMostVisitedPages,
setRecentlyClosedTabs: setRecentlyClosedTabs,
setStripeColor: setStripeColor,