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

Unified Diff: chrome/browser/android/android_protocol_adapter.cc

Issue 10836206: Removed static factories for data, ftp, file, and about jobs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small fix Created 8 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/web_request/web_request_api_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | chrome/browser/extensions/api/web_request/web_request_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698