summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 20:53:25 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 20:53:25 +0000
commite001d41b9c174084809b80f784811303b1ef04aa (patch)
tree8715b8ec1093ad04a56b5d96f6f4233a88009f8c /chrome/browser/browser.cc
parent3bf335afc98d4f9e85bb5a3f72974d53cb77ebeb (diff)
downloadchromium_src-e001d41b9c174084809b80f784811303b1ef04aa.zip
chromium_src-e001d41b9c174084809b80f784811303b1ef04aa.tar.gz
chromium_src-e001d41b9c174084809b80f784811303b1ef04aa.tar.bz2
Use regular notifications for theme changes.
This should have no impact on the current behavior. On linux, we'll want to get these notifications in a few places other than just the root browser windows so having it as a regular notification makes it easier for us to just listen for the event. Review URL: http://codereview.chromium.org/149032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19414 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 936d896..445249f 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -190,6 +190,8 @@ Browser::Browser(Type type, Profile* profile)
NotificationService::AllSources());
registrar_.Add(this, NotificationType::EXTENSION_UNLOADED,
NotificationService::AllSources());
+ registrar_.Add(this, NotificationType::BROWSER_THEME_CHANGED,
+ NotificationService::AllSources());
InitCommandState();
BrowserList::AddBrowser(this);
@@ -1993,6 +1995,10 @@ void Browser::Observe(NotificationType type,
break;
}
+ case NotificationType::BROWSER_THEME_CHANGED:
+ window()->UserChangedTheme();
+ break;
+
default:
NOTREACHED() << "Got a notification we didn't register for.";
}