Index: chrome/browser/themes/theme_service_aurax11.cc |
diff --git a/chrome/browser/themes/theme_service_aurax11.cc b/chrome/browser/themes/theme_service_aurax11.cc |
index 95a834ca24efa1bab2418da2ea3a305d7d34df11..8eb13ed8847f98ba52dd63ab98670acfdb0958b2 100644 |
--- a/chrome/browser/themes/theme_service_aurax11.cc |
+++ b/chrome/browser/themes/theme_service_aurax11.cc |
@@ -43,13 +43,16 @@ SystemThemeX11::SystemThemeX11(PrefService* pref_service) |
void SystemThemeX11::StartUsingTheme() { |
pref_service_->SetBoolean(prefs::kUsesSystemTheme, true); |
- // Have the former theme notify its observers of change. |
+ // Both old and new themes' observers should be notified of the change. |
Elliot Glaysher
2014/06/13 20:05:54
Could you please expand this comment to include mo
Evan Stade
2014/06/13 20:14:39
Done.
|
+ if (linux_ui_) |
+ linux_ui_->GetNativeTheme(NULL)->NotifyObservers(); |
ui::NativeThemeAura::instance()->NotifyObservers(); |
} |
void SystemThemeX11::StopUsingTheme() { |
pref_service_->SetBoolean(prefs::kUsesSystemTheme, false); |
- // Have the former theme notify its observers of change. |
+ // Both old and new themes' observers should be notified of the change. |
+ ui::NativeThemeAura::instance()->NotifyObservers(); |
if (linux_ui_) |
linux_ui_->GetNativeTheme(NULL)->NotifyObservers(); |
} |