2017-04-27 03:59:52 +02:00
|
|
|
diff --git chrome/browser/renderer_preferences_util.cc chrome/browser/renderer_preferences_util.cc
|
2019-03-13 22:27:37 +01:00
|
|
|
index f5ed7f0683c5..5b31fb309985 100644
|
2017-04-27 03:59:52 +02:00
|
|
|
--- chrome/browser/renderer_preferences_util.cc
|
|
|
|
+++ chrome/browser/renderer_preferences_util.cc
|
2019-02-21 01:42:36 +01:00
|
|
|
@@ -29,7 +29,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"
|
2019-02-21 01:42:36 +01:00
|
|
|
@@ -129,7 +130,8 @@ void UpdateFromSystemSettings(blink::mojom::RendererPreferences* prefs,
|
2017-12-07 22:44:24 +01:00
|
|
|
prefs->caret_blink_interval = interval;
|
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()) {
|