2017-04-26 21:59:52 -04:00
|
|
|
diff --git chrome/browser/renderer_preferences_util.cc chrome/browser/renderer_preferences_util.cc
|
2018-06-01 15:16:26 -04:00
|
|
|
index e0fa371f0a8a..7309acfc729d 100644
|
2017-04-26 21:59:52 -04:00
|
|
|
--- chrome/browser/renderer_preferences_util.cc
|
|
|
|
+++ chrome/browser/renderer_preferences_util.cc
|
2017-01-23 12:36:54 -05:00
|
|
|
@@ -32,7 +32,8 @@
|
2016-10-17 14:14:44 -04:00
|
|
|
#include "ui/base/cocoa/defaults_utils.h"
|
2015-10-16 20:44:00 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
-#if defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
|
|
|
+#if defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS) && \
|
|
|
|
+ defined(ENABLE_THEMES)
|
|
|
|
#include "chrome/browser/themes/theme_service.h"
|
|
|
|
#include "chrome/browser/themes/theme_service_factory.h"
|
|
|
|
#include "ui/views/linux_ui/linux_ui.h"
|
2018-06-01 15:16:26 -04:00
|
|
|
@@ -132,7 +133,8 @@ void UpdateFromSystemSettings(content::RendererPreferences* prefs,
|
2017-12-07 16:44:24 -05:00
|
|
|
prefs->caret_blink_interval = interval;
|
2015-10-16 20:44:00 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
-#if defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
|
|
|
+#if defined(USE_AURA) && defined(OS_LINUX) && !defined(OS_CHROMEOS) && \
|
|
|
|
+ defined(ENABLE_THEMES)
|
|
|
|
views::LinuxUI* linux_ui = views::LinuxUI::instance();
|
|
|
|
if (linux_ui) {
|
|
|
|
if (ThemeServiceFactory::GetForProfile(profile)->UsingSystemTheme()) {
|