Chromium Code Reviews| 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 76befd6661be937399eacb7a37ab859e3e59f917..2d07a19008d586154fff0bd3f40d98dfcb285cd2 100644 |
| --- a/chrome/browser/ui/gtk/gtk_theme_service.cc |
| +++ b/chrome/browser/ui/gtk/gtk_theme_service.cc |
| @@ -17,6 +17,7 @@ |
| #include "base/stl_util.h" |
| #include "chrome/browser/chrome_notification_types.h" |
| #include "chrome/browser/profiles/profile.h" |
| +#include "chrome/browser/themes/custom_theme_supplier.h" |
| #include "chrome/browser/themes/theme_properties.h" |
| #include "chrome/browser/themes/theme_service_factory.h" |
| #include "chrome/browser/ui/browser.h" |
| @@ -351,6 +352,13 @@ void GtkThemeService::SetTheme(const extensions::Extension* extension) { |
| ThemeService::SetTheme(extension); |
| } |
| +void GtkThemeService::SetCustomDefaultTheme( |
| + scoped_refptr<CustomThemeSupplier> theme_supplier) { |
| + profile()->GetPrefs()->SetBoolean(prefs::kUsesSystemTheme, false); |
|
pkotwicz
2013/08/09 14:23:02
For the sake of consistency, do you need to also s
Adrian Kuegel
2013/08/09 15:43:01
Right. I also think it should be in the SetTheme()
|
| + LoadDefaultValues(); |
| + ThemeService::SetCustomDefaultTheme(theme_supplier); |
| +} |
| + |
| void GtkThemeService::UseDefaultTheme() { |
| profile()->GetPrefs()->SetBoolean(prefs::kUsesSystemTheme, false); |
| use_gtk_ = false; |