2015-10-17 02:44:00 +02:00
|
|
|
diff --git renderer_preferences_util.cc renderer_preferences_util.cc
|
2017-01-23 18:36:54 +01:00
|
|
|
index 7296a04..c702d31 100644
|
2015-10-17 02:44:00 +02:00
|
|
|
--- renderer_preferences_util.cc
|
|
|
|
+++ renderer_preferences_util.cc
|
2017-01-23 18:36:54 +01:00
|
|
|
@@ -32,7 +32,8 @@
|
2016-10-17 20:14:44 +02:00
|
|
|
#include "ui/base/cocoa/defaults_utils.h"
|
2015-10-17 02:44:00 +02: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"
|
2017-01-23 18:36:54 +01:00
|
|
|
@@ -134,7 +135,8 @@ void UpdateFromSystemSettings(content::RendererPreferences* prefs,
|
2016-10-17 20:14:44 +02:00
|
|
|
prefs->caret_blink_interval = interval.InSecondsF();
|
2015-10-17 02:44:00 +02: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()) {
|