| Index: chromecast/shell/browser/url_request_context_factory.cc
|
| diff --git a/chromecast/shell/browser/url_request_context_factory.cc b/chromecast/shell/browser/url_request_context_factory.cc
|
| index 0bac1b3f52e1a9ba06ddaa6d9ac153ee58660587..9ab7c7d8b8ac79962e4f03a3f4f446b8058a5707 100644
|
| --- a/chromecast/shell/browser/url_request_context_factory.cc
|
| +++ b/chromecast/shell/browser/url_request_context_factory.cc
|
| @@ -30,6 +30,7 @@
|
| #include "net/ssl/default_channel_id_store.h"
|
| #include "net/ssl/ssl_config_service_defaults.h"
|
| #include "net/url_request/data_protocol_handler.h"
|
| +#include "net/url_request/file_protocol_handler.h"
|
| #include "net/url_request/url_request_context.h"
|
| #include "net/url_request/url_request_context_getter.h"
|
| #include "net/url_request/url_request_intercepting_job_factory.h"
|
| @@ -240,6 +241,15 @@ void URLRequestContextFactory::InitializeMainContextDependencies(
|
| url::kDataScheme,
|
| new net::DataProtocolHandler);
|
| DCHECK(set_protocol);
|
| +#if defined(OS_ANDROID)
|
| + set_protocol = job_factory->SetProtocolHandler(
|
| + url::kFileScheme,
|
| + new net::FileProtocolHandler(
|
| + content::BrowserThread::GetBlockingPool()->
|
| + GetTaskRunnerWithShutdownBehavior(
|
| + base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)));
|
| + DCHECK(set_protocol);
|
| +#endif // defined(OS_ANDROID)
|
|
|
| // Set up interceptors in the reverse order.
|
| scoped_ptr<net::URLRequestJobFactory> top_job_factory =
|
|
|