| Index: net/base/file_stream_context.cc
|
| diff --git a/net/base/file_stream_context.cc b/net/base/file_stream_context.cc
|
| index 2e774752045d9c0d0e6a8c82dc3dfc7a6bb9c366..cc388d1cbce728e5669f2d441d9d1e2f994151a2 100644
|
| --- a/net/base/file_stream_context.cc
|
| +++ b/net/base/file_stream_context.cc
|
| @@ -64,6 +64,12 @@ void FileStream::Context::Orphan() {
|
| void FileStream::Context::OpenAsync(const base::FilePath& path,
|
| int open_flags,
|
| const CompletionCallback& callback) {
|
| +#if defined(OS_ANDROID)
|
| + if (path.IsContentUrl()) {
|
| + OpenContentUrlAsync(path, open_flags, callback);
|
| + return;
|
| + }
|
| +#endif
|
| DCHECK(!async_in_progress_);
|
|
|
| BeginOpenEvent(path);
|
| @@ -80,6 +86,10 @@ void FileStream::Context::OpenAsync(const base::FilePath& path,
|
| }
|
|
|
| int FileStream::Context::OpenSync(const base::FilePath& path, int open_flags) {
|
| +#if defined(OS_ANDROID)
|
| + if (path.IsContentUrl())
|
| + return OpenContentUrlSync(path, open_flags);
|
| +#endif
|
| DCHECK(!async_in_progress_);
|
|
|
| BeginOpenEvent(path);
|
|
|