summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 03:45:55 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-24 03:45:55 +0000
commitcbdd7de00e63b0de23be30e30bf3bbe72f6935ca (patch)
tree395eec42e54b3f434d06c0d75529de5ac2c74d4e /chrome/browser/dom_ui
parent1442da5c9fa9df0d8785191d9bf3576931e01d87 (diff)
downloadchromium_src-cbdd7de00e63b0de23be30e30bf3bbe72f6935ca.zip
chromium_src-cbdd7de00e63b0de23be30e30bf3bbe72f6935ca.tar.gz
chromium_src-cbdd7de00e63b0de23be30e30bf3bbe72f6935ca.tar.bz2
Make the NNTP listen for the correct theme changed notification.
BUG=17565 TEST=Install a theme, reset the theme, verify that the NNTP changes correctly in both cases. Review URL: http://codereview.chromium.org/160027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21507 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r--chrome/browser/dom_ui/new_tab_ui.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc
index b2fceb7..75a3272 100644
--- a/chrome/browser/dom_ui/new_tab_ui.cc
+++ b/chrome/browser/dom_ui/new_tab_ui.cc
@@ -1488,7 +1488,7 @@ NewTabUI::NewTabUI(TabContents* contents)
}
// Listen for theme installation.
- registrar_.Add(this, NotificationType::THEME_INSTALLED,
+ registrar_.Add(this, NotificationType::BROWSER_THEME_CHANGED,
NotificationService::AllSources());
// Listen for bookmark bar visibility changes.
registrar_.Add(this, NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED,
@@ -1501,7 +1501,7 @@ NewTabUI::~NewTabUI() {
void NewTabUI::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (NotificationType::THEME_INSTALLED == type) {
+ if (NotificationType::BROWSER_THEME_CHANGED == type) {
CallJavascriptFunction(L"themeChanged");
} else if (NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED) {
if (GetProfile()->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar))