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 1ca4331817741e62ca59ad063b2aed1fca936974..eb7a87d5a6631b7ceeb1ee60d04f0cf75706ca76 100644 |
--- a/chrome/browser/ui/prefs/prefs_tab_helper.cc |
+++ b/chrome/browser/ui/prefs/prefs_tab_helper.cc |
@@ -50,7 +50,7 @@ |
#include "third_party/icu/source/common/unicode/uscript.h" |
#include "ui/base/l10n/l10n_util.h" |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) && defined(ENABLE_THEMES) |
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
#include "chrome/browser/themes/theme_service.h" |
#include "chrome/browser/themes/theme_service_factory.h" |
#endif |
@@ -490,7 +490,7 @@ PrefsTabHelper::PrefsTabHelper(WebContents* contents) |
profile_, |
web_contents_); |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) && defined(ENABLE_THEMES) |
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
registrar_.Add(this, |
chrome::NOTIFICATION_BROWSER_THEME_CHANGED, |
content::Source<ThemeService>( |
@@ -604,7 +604,7 @@ void PrefsTabHelper::GetServiceInstance() { |
void PrefsTabHelper::Observe(int type, |
const content::NotificationSource& source, |
const content::NotificationDetails& details) { |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) && defined(ENABLE_THEMES) |
+#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
if (type == chrome::NOTIFICATION_BROWSER_THEME_CHANGED) { |
UpdateRendererPreferences(); |
return; |