| Index: chrome/browser/ui/gtk/gtk_theme_service.cc
|
| diff --git a/chrome/browser/ui/gtk/gtk_theme_service.cc b/chrome/browser/ui/gtk/gtk_theme_service.cc
|
| index 81bf8a96815c0258c695fce8f0a937a036a5ea9f..bab5948559777a9824dcec755e802a37394914fe 100644
|
| --- a/chrome/browser/ui/gtk/gtk_theme_service.cc
|
| +++ b/chrome/browser/ui/gtk/gtk_theme_service.cc
|
| @@ -327,7 +327,7 @@ bool GtkThemeService::HasCustomImage(int id) const {
|
|
|
| void GtkThemeService::InitThemesFor(NotificationObserver* observer) {
|
| observer->Observe(NotificationType::BROWSER_THEME_CHANGED,
|
| - Source<ui::ThemeProvider>(this),
|
| + Source<ThemeService>(this),
|
| NotificationService::NoDetails());
|
| }
|
|
|
| @@ -358,8 +358,11 @@ void GtkThemeService::Observe(NotificationType type,
|
| const NotificationSource& source,
|
| const NotificationDetails& details) {
|
| if ((type == NotificationType::PREF_CHANGED) &&
|
| - (*Details<std::string>(details).ptr() == prefs::kUsesSystemTheme))
|
| + (*Details<std::string>(details).ptr() == prefs::kUsesSystemTheme)) {
|
| use_gtk_ = profile()->GetPrefs()->GetBoolean(prefs::kUsesSystemTheme);
|
| + } else {
|
| + ThemeService::Observe(type, source, details);
|
| + }
|
| }
|
|
|
| GtkWidget* GtkThemeService::BuildChromeButton() {
|
|
|