Chromium Code Reviews| Index: net/url_request/file_protocol_handler.cc |
| diff --git a/net/url_request/file_protocol_handler.cc b/net/url_request/file_protocol_handler.cc |
| index ceed930985cd8514ca2d7c9b1209af5e71b5880b..a71bfdecb416f2af3b3eb6bbaec1893fa815f93d 100644 |
| --- a/net/url_request/file_protocol_handler.cc |
| +++ b/net/url_request/file_protocol_handler.cc |
| @@ -23,6 +23,14 @@ FileProtocolHandler::~FileProtocolHandler() {} |
| URLRequestJob* FileProtocolHandler::MaybeCreateJob( |
| URLRequest* request, NetworkDelegate* network_delegate) const { |
| +#if defined(OS_ANDROID) |
| + if (request->url().SchemeIs("content")) { |
| + return new URLRequestFileJob( |
| + request, network_delegate, base::FilePath(request->url().spec()), |
|
asanka
2014/11/21 02:22:02
Is this correct? No unescaping?
|
| + file_task_runner_); |
| + } |
| +#endif |
| + |
| base::FilePath file_path; |
| const bool is_file = FileURLToFilePath(request->url(), &file_path); |