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

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

Issue 2634413002: Faster Reload: Specify AllowCaching = false for some URLDataSources that need it (Closed)
Patch Set: Created 3 years, 11 months 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
« no previous file with comments | « chrome/browser/ui/webui/theme_source.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/theme_source.cc
diff --git a/chrome/browser/ui/webui/theme_source.cc b/chrome/browser/ui/webui/theme_source.cc
index 6f7d2cab66b85c0f69755cb4403f7ad3c0b1baad..92b7601539500b3bf7a961f1f6669233cc51545a 100644
--- a/chrome/browser/ui/webui/theme_source.cc
+++ b/chrome/browser/ui/webui/theme_source.cc
@@ -179,6 +179,10 @@ ThemeSource::TaskRunnerForRequestPath(const std::string& path) const {
: nullptr;
}
+bool ThemeSource::AllowCaching() const {
+ return false;
+}
+
bool ThemeSource::ShouldServiceRequest(const net::URLRequest* request) const {
return request->url().SchemeIs(chrome::kChromeSearchScheme) ?
InstantIOContext::ShouldServiceRequest(request) :
« no previous file with comments | « chrome/browser/ui/webui/theme_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698