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

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

Issue 2856093004: Generalize content::URLDataSource so that it can be used by the network service. (Closed)
Patch Set: review comments Created 3 years, 8 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
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 a0c050214caabf5d9badef66b84c1811d3f52579..2bcf02cbc1bab52a7980f88b3faa00cb9cb2975d 100644
--- a/chrome/browser/ui/webui/theme_source.cc
+++ b/chrome/browser/ui/webui/theme_source.cc
@@ -183,10 +183,15 @@ bool ThemeSource::AllowCaching() const {
return false;
}
-bool ThemeSource::ShouldServiceRequest(const net::URLRequest* request) const {
- return request->url().SchemeIs(chrome::kChromeSearchScheme) ?
- InstantIOContext::ShouldServiceRequest(request) :
- URLDataSource::ShouldServiceRequest(request);
+bool ThemeSource::ShouldServiceRequest(
+ const GURL& url,
+ content::ResourceContext* resource_context,
+ int render_process_id) const {
+ return url.SchemeIs(chrome::kChromeSearchScheme)
+ ? InstantIOContext::ShouldServiceRequest(url, resource_context,
+ render_process_id)
+ : URLDataSource::ShouldServiceRequest(url, resource_context,
+ render_process_id);
}
////////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698