diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-05 22:52:47 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-05 22:52:47 +0000 |
commit | fbef5d44a78f96fe1764852a907e096a18066724 (patch) | |
tree | 839d96e17f42b605385d83ea09eb818deadd532a /chrome/browser/web_resource | |
parent | a01a805e84cdafc880c3cd82e5872e1d8a7cdba2 (diff) | |
download | chromium_src-fbef5d44a78f96fe1764852a907e096a18066724.zip chromium_src-fbef5d44a78f96fe1764852a907e096a18066724.tar.gz chromium_src-fbef5d44a78f96fe1764852a907e096a18066724.tar.bz2 |
Make web resource service custom logo only redraw the new tab page cache, not the whole theme.
BUG=57187
TEST=no more crash on Linux.
Review URL: http://codereview.chromium.org/3576014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61579 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_resource')
-rw-r--r-- | chrome/browser/web_resource/web_resource_service.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/web_resource/web_resource_service.cc b/chrome/browser/web_resource/web_resource_service.cc index 94c89d8..16e06dd 100644 --- a/chrome/browser/web_resource/web_resource_service.cc +++ b/chrome/browser/web_resource/web_resource_service.cc @@ -352,16 +352,16 @@ void WebResourceService::UnpackLogoSignal(const DictionaryValue& parsed_json) { } } - // If logo start or end times have changed, trigger a theme change so that - // the logo on the NTP is updated. This check is outside the reading of the - // web resource data, because the absence of dates counts as a triggering - // change if there were dates before. + // If logo start or end times have changed, trigger a new web resource + // notification, so that the logo on the NTP is updated. This check is + // outside the reading of the web resource data, because the absence of + // dates counts as a triggering change if there were dates before. if (!(old_logo_start == logo_start) || !(old_logo_end == logo_end)) { prefs_->SetReal(prefs::kNTPCustomLogoStart, logo_start); prefs_->SetReal(prefs::kNTPCustomLogoEnd, logo_end); NotificationService* service = NotificationService::current(); - service->Notify(NotificationType::BROWSER_THEME_CHANGED, + service->Notify(NotificationType::WEB_RESOURCE_AVAILABLE, Source<WebResourceService>(this), NotificationService::NoDetails()); } |