Index: chrome/browser/android/android_protocol_adapter.cc |
diff --git a/chrome/browser/android/android_protocol_adapter.cc b/chrome/browser/android/android_protocol_adapter.cc |
index aea709200073d5f5cd0a09c3e0502cf58347cf01..8de2a3528db0d7015004265d3ab4bde5bc525dd1 100644 |
--- a/chrome/browser/android/android_protocol_adapter.cc |
+++ b/chrome/browser/android/android_protocol_adapter.cc |
@@ -19,8 +19,10 @@ |
#include "net/base/net_errors.h" |
#include "net/base/net_util.h" |
#include "net/http/http_util.h" |
+#include "net/url_request/url_request.h" |
+#include "net/url_request/url_request_context.h" |
+#include "net/url_request/file_protocol_handler.h" |
#include "net/url_request/url_request_error_job.h" |
-#include "net/url_request/url_request_file_job.h" |
#include "net/url_request/url_request_job_manager.h" |
using base::android::AttachCurrentThread; |
@@ -92,7 +94,8 @@ net::URLRequestJob* AndroidProtocolAdapter::Factory( |
if (scheme == chrome::kFileScheme && |
!StartsWithASCII(url, assetPrefix, /*case_sensitive=*/ true) && |
!StartsWithASCII(url, resourcePrefix, /*case_sensitive=*/ true)) { |
- return net::URLRequestFileJob::Factory(request, network_delegate, scheme); |
+ net::FileProtocolHandler file_protocol_handler; |
+ return file_protocol_handler.MaybeCreateJob(request, network_delegate); |
} |
return new AndroidStreamReaderURLRequestJob( |