Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 97dd65d45989d1a9a0ab1cd83e392089c56b4a4e..5760afdf0c62ee1ba429465fa1c9ff2c9f176d62 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -372,10 +372,14 @@ Browser::Browser(Type type, Profile* profile) |
content::Source<Profile>(profile_->GetOriginalProfile())); |
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_PROCESS_TERMINATED, |
content::NotificationService::AllSources()); |
+#if !defined(OS_ANDROID) |
Ben Goodger (Google)
2012/03/08 23:33:48
akin to my comment in the other CL: USE_THEMES?
|
+ // TODO(yfriedman): remove OS_ANDROID clause when browser is excluded from |
+ // Android build. |
registrar_.Add( |
this, chrome::NOTIFICATION_BROWSER_THEME_CHANGED, |
content::Source<ThemeService>( |
ThemeServiceFactory::GetForProfile(profile_))); |
+#endif |
registrar_.Add(this, chrome::NOTIFICATION_WEB_CONTENT_SETTINGS_CHANGED, |
content::NotificationService::AllSources()); |
@@ -4435,9 +4439,13 @@ void Browser::Observe(int type, |
window()->GetLocationBar()->UpdatePageActions(); |
break; |
+#if !defined(OS_ANDROID) |
+ // TODO(yfriedman): remove OS_ANDROID clause when browser is excluded from |
+ // Android build. |
case chrome::NOTIFICATION_BROWSER_THEME_CHANGED: |
window()->UserChangedTheme(); |
break; |
+#endif |
case chrome::NOTIFICATION_PREF_CHANGED: { |
const std::string& pref_name = |