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

Unified Diff: chrome/browser/ui/webui/large_icon_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/large_icon_source.cc
diff --git a/chrome/browser/ui/webui/large_icon_source.cc b/chrome/browser/ui/webui/large_icon_source.cc
index 2924ec26f99adad8c9067875f3ca09165ade3899..38cef076a35e013d2408d5cc422e669217f67e36 100644
--- a/chrome/browser/ui/webui/large_icon_source.cc
+++ b/chrome/browser/ui/webui/large_icon_source.cc
@@ -90,10 +90,15 @@ bool LargeIconSource::ShouldReplaceExistingSource() const {
}
bool LargeIconSource::ShouldServiceRequest(
- const net::URLRequest* request) const {
- if (request->url().SchemeIs(chrome::kChromeSearchScheme))
- return InstantIOContext::ShouldServiceRequest(request);
- return URLDataSource::ShouldServiceRequest(request);
+ const GURL& url,
+ content::ResourceContext* resource_context,
+ int render_process_id) const {
+ if (url.SchemeIs(chrome::kChromeSearchScheme)) {
+ return InstantIOContext::ShouldServiceRequest(url, resource_context,
+ render_process_id);
+ }
+ return URLDataSource::ShouldServiceRequest(url, resource_context,
+ render_process_id);
}
void LargeIconSource::OnLargeIconDataAvailable(

Powered by Google App Engine
This is Rietveld 408576698