summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-05 03:32:20 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-05 03:32:20 +0000
commitcf066e493d140b20125adf2335f8b891d7e4b536 (patch)
tree87a2185d1fec20c4c22067fa5306ac168f30f096 /chrome
parenta34aa5afa12ecc16078918c6e01f9cb7a9526923 (diff)
downloadchromium_src-cf066e493d140b20125adf2335f8b891d7e4b536.zip
chromium_src-cf066e493d140b20125adf2335f8b891d7e4b536.tar.gz
chromium_src-cf066e493d140b20125adf2335f8b891d7e4b536.tar.bz2
Use the theme ID as as the cache-buster, making subsequent NNTP loads much faster.
BUG=18427 TEST=Install a few themes, verify that the NNTP never gets out of sync with the installed theme. Review URL: http://codereview.chromium.org/159900 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22462 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/dom_ui/dom_ui_theme_source.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/dom_ui/dom_ui_theme_source.cc b/chrome/browser/dom_ui/dom_ui_theme_source.cc
index 2b7b826..a535828 100644
--- a/chrome/browser/dom_ui/dom_ui_theme_source.cc
+++ b/chrome/browser/dom_ui/dom_ui_theme_source.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/browser_theme_provider.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/theme_resources_util.h"
+#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "googleurl/src/gurl.h"
#include "grit/browser_resources.h"
@@ -114,8 +115,8 @@ void DOMUIThemeSource::SendNewTabCSS(int request_id) {
std::vector<string16> subst2;
// Cache-buster for background.
- subst.push_back(UTF8ToUTF16(IntToString(static_cast<int>(
- base::Time::Now().ToDoubleT())))); // $1
+ subst.push_back(WideToUTF16(
+ profile_->GetPrefs()->GetString(prefs::kCurrentThemeID))); // $1
// Colors.
subst.push_back(SkColorToRGBAString(color_background)); // $2