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

Unified Diff: ios/web/webui/url_data_source_ios.mm

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: ios/web/webui/url_data_source_ios.mm
diff --git a/ios/web/webui/url_data_source_ios.mm b/ios/web/webui/url_data_source_ios.mm
index 537b1436e5f00eb7e6a8a0fd838b5c535186a0a3..def77e58f0055ab3ee4ed40c80e152970490be7b 100644
--- a/ios/web/webui/url_data_source_ios.mm
+++ b/ios/web/webui/url_data_source_ios.mm
@@ -35,11 +35,8 @@ bool URLDataSourceIOS::ShouldDenyXFrameOptions() const {
return true;
}
-bool URLDataSourceIOS::ShouldServiceRequest(
- const net::URLRequest* request) const {
- if (GetWebClient()->IsAppSpecificURL(request->url()))
- return true;
- return false;
+bool URLDataSourceIOS::ShouldServiceRequest(const GURL& url) const {
+ return GetWebClient()->IsAppSpecificURL(url);
}
} // namespace web

Powered by Google App Engine
This is Rietveld 408576698