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

Unified Diff: android_webview/browser/net/aw_url_request_job_factory.cc

Issue 1868763002: Remove URLRequest::IsHandledProtocol and IsHandledURL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: replace some hardcoded strings Created 4 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: android_webview/browser/net/aw_url_request_job_factory.cc
diff --git a/android_webview/browser/net/aw_url_request_job_factory.cc b/android_webview/browser/net/aw_url_request_job_factory.cc
index a13a8cbe3cd592c146ffa6c7509fd670c28743e5..fef48615c715d29ad23ec48af0b5590147fd8a4f 100644
--- a/android_webview/browser/net/aw_url_request_job_factory.cc
+++ b/android_webview/browser/net/aw_url_request_job_factory.cc
@@ -49,8 +49,11 @@ URLRequestJob* AwURLRequestJobFactory::MaybeCreateJobWithProtocolHandler(
if (job)
return job;
- // If URLRequest supports the scheme NULL should be returned from this method.
+ // If a URLRequestJobManager built-in factory supports the scheme, NULL should
+ // be returned from this method.
// In that case the built in handlers will then be used to create the job.
+ // TODO(mgersh): remove this check once HttpProtocolHandler exists and is
+ // added to the relevant URLRequestJobFactory.
// NOTE(joth): See the assumption in IsHandledProtocol above.
if (net::URLRequest::IsHandledProtocol(scheme))
mmenke 2016/04/21 18:24:19 Can't this just be replaced with next_factory_->Is
mgersh 2016/04/21 19:04:45 Oh, yeah, that would work. Did that, and also remo
return NULL;

Powered by Google App Engine
This is Rietveld 408576698