| 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);
|
|
|