Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6298)

Unified Diff: chrome/browser/ui/webui/theme_handler.cc

Issue 1492423003: Rejigger ThemeService: move exposure of ThemeProvider interface to a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: respond to comments Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/theme_handler.cc
diff --git a/chrome/browser/ui/webui/theme_handler.cc b/chrome/browser/ui/webui/theme_handler.cc
index f8b693cb3baac8f053a9c88aebaf0a8ec2384704..585d662a54758df1f051e4ff3ed4e71eb7e205d3 100644
--- a/chrome/browser/ui/webui/theme_handler.cc
+++ b/chrome/browser/ui/webui/theme_handler.cc
@@ -39,8 +39,8 @@ void ThemeHandler::Observe(int type,
const content::NotificationDetails& details) {
DCHECK_EQ(chrome::NOTIFICATION_BROWSER_THEME_CHANGED, type);
InitializeCSSCaches();
- bool has_custom_bg = ThemeServiceFactory::GetForProfile(GetProfile())
- ->HasCustomImage(IDR_THEME_NTP_BACKGROUND);
+ bool has_custom_bg = ThemeService::GetThemeProviderForProfile(GetProfile())
+ .HasCustomImage(IDR_THEME_NTP_BACKGROUND);
base::DictionaryValue dictionary;
dictionary.SetBoolean("hasCustomBackground", has_custom_bg);
web_ui()->CallJavascriptFunction("ntp.themeChanged", dictionary);

Powered by Google App Engine
This is Rietveld 408576698