Index: chrome/browser/ui/prefs/prefs_tab_helper.cc |
diff --git a/chrome/browser/ui/prefs/prefs_tab_helper.cc b/chrome/browser/ui/prefs/prefs_tab_helper.cc |
index 7352d63e767fec2dc3b965bf9a2baa89d071fa14..638bbb2edac44e9979417b0a41f1e5f5ad2190b9 100644 |
--- a/chrome/browser/ui/prefs/prefs_tab_helper.cc |
+++ b/chrome/browser/ui/prefs/prefs_tab_helper.cc |
@@ -364,7 +364,7 @@ PrefsTabHelper::PrefsTabHelper(WebContents* contents) |
registrar_.Add(this, chrome::NOTIFICATION_USER_STYLE_SHEET_UPDATED, |
content::NotificationService::AllSources()); |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) |
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && defined(ENABLE_THEMES) |
registrar_.Add(this, chrome::NOTIFICATION_BROWSER_THEME_CHANGED, |
content::Source<ThemeService>( |
ThemeServiceFactory::GetForProfile(GetProfile()))); |
@@ -585,7 +585,7 @@ void PrefsTabHelper::Observe(int type, |
case chrome::NOTIFICATION_USER_STYLE_SHEET_UPDATED: |
UpdateWebPreferences(); |
break; |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) |
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && defined(ENABLE_THEMES) |
case chrome::NOTIFICATION_BROWSER_THEME_CHANGED: { |
UpdateRendererPreferences(); |
break; |