summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-09 21:00:43 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-09 21:00:43 +0000
commit2e49585ce107329088df6eeed6e90823dca3044f (patch)
treedb165345ba14dd85cd7c82b5c5843b8519228c45
parentd0483b9c67ef62bb5f7220675eba6afb185ccfeb (diff)
downloadchromium_src-2e49585ce107329088df6eeed6e90823dca3044f.zip
chromium_src-2e49585ce107329088df6eeed6e90823dca3044f.tar.gz
chromium_src-2e49585ce107329088df6eeed6e90823dca3044f.tar.bz2
Force NTP reload when a new theme is installed.
BUG=74311 TEST=NTP background updates immediately on theme install. Review URL: http://codereview.chromium.org/6653001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77517 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/ui/webui/theme_source.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/ui/webui/theme_source.cc b/chrome/browser/ui/webui/theme_source.cc
index 1572017..9c87ce9 100644
--- a/chrome/browser/ui/webui/theme_source.cc
+++ b/chrome/browser/ui/webui/theme_source.cc
@@ -95,7 +95,9 @@ MessageLoop* ThemeSource::MessageLoopForRequestPath(
}
bool ThemeSource::ShouldReplaceExistingSource() const {
- return false;
+ // We currently get the css_bytes_ in the ThemeSource constructor, so we need
+ // to recreate the source itself when a theme changes.
+ return true;
}
////////////////////////////////////////////////////////////////////////////////