Chromium Code Reviews| 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..0d8ddecff1c11e981f5752df85d339c92007f3db 100644 |
| --- a/android_webview/browser/net/aw_url_request_job_factory.cc |
| +++ b/android_webview/browser/net/aw_url_request_job_factory.cc |
| @@ -49,10 +49,13 @@ 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. |
|
mmenke
2016/04/21 19:13:33
Think you can remove this TODO? We'll have to kee
mgersh
2016/04/22 14:33:18
My understanding is that it's here only to allow t
mmenke
2016/04/22 14:54:36
I thought it was also here to distinguished "handl
mmenke
2016/04/22 14:56:00
Oh, I guess with that logic moved down to URLReque
|
| // NOTE(joth): See the assumption in IsHandledProtocol above. |
| - if (net::URLRequest::IsHandledProtocol(scheme)) |
| + if (next_factory_->IsHandledProtocol(scheme)) |
| return NULL; |
|
mmenke
2016/04/21 19:13:33
nit: While you're here, mind changing the NULL to
mgersh
2016/04/22 14:33:18
Not going to bother here, since I still think it c
|
| return new net::URLRequestErrorJob( |