From cbdd7de00e63b0de23be30e30bf3bbe72f6935ca Mon Sep 17 00:00:00 2001 From: "glen@chromium.org" Date: Fri, 24 Jul 2009 03:45:55 +0000 Subject: 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 --- chrome/browser/dom_ui/new_tab_ui.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/dom_ui') 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)) -- cgit v1.1