From d7b8e02e20a82b397f6c94d3d286c83a4a22eb46 Mon Sep 17 00:00:00 2001 From: brave-builds Date: Wed, 24 Apr 2019 03:24:35 +0000 Subject: [PATCH] Uplift of #2219 (squashed) to beta --- .../ui-native_theme-native_theme_win.cc.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 patches/ui-native_theme-native_theme_win.cc.patch diff --git a/patches/ui-native_theme-native_theme_win.cc.patch b/patches/ui-native_theme-native_theme_win.cc.patch new file mode 100644 index 000000000000..1c2a4affc7ba --- /dev/null +++ b/patches/ui-native_theme-native_theme_win.cc.patch @@ -0,0 +1,16 @@ +diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc +index 0df107bf9757a81897e9312a9eba977b8a173646..61e4f4ce671c5e0f92208b54aade903110ddc7a7 100644 +--- a/ui/native_theme/native_theme_win.cc ++++ b/ui/native_theme/native_theme_win.cc +@@ -1934,7 +1934,11 @@ void NativeThemeWin::RegisterThemeRegkeyObserver() { + DCHECK(hkcu_themes_regkey_.Valid()); + hkcu_themes_regkey_.StartWatching(base::BindOnce( + [](NativeThemeWin* native_theme) { ++#if defined(BRAVE_CHROMIUM_BUILD) ++ NotifyProperThemeObserver(); ++#else + native_theme->NotifyObservers(); ++#endif + // RegKey::StartWatching only provides one notification. Reregistration + // is required to get future notifications. + native_theme->RegisterThemeRegkeyObserver();