| Index: content/shell/browser/shell_url_request_context_getter.cc
|
| diff --git a/content/shell/browser/shell_url_request_context_getter.cc b/content/shell/browser/shell_url_request_context_getter.cc
|
| index 9d01a4340ff1cee8578b8d321a9e293996b1c6d6..46e6928cd55a7ceada64281af34a3a6f8689c146 100644
|
| --- a/content/shell/browser/shell_url_request_context_getter.cc
|
| +++ b/content/shell/browser/shell_url_request_context_getter.cc
|
| @@ -210,12 +210,14 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() {
|
| bool set_protocol = job_factory->SetProtocolHandler(
|
| url::kDataScheme, new net::DataProtocolHandler);
|
| DCHECK(set_protocol);
|
| +#if !defined(DISABLE_FILE_SUPPORT)
|
| set_protocol = job_factory->SetProtocolHandler(
|
| url::kFileScheme,
|
| new net::FileProtocolHandler(
|
| BrowserThread::GetBlockingPool()->GetTaskRunnerWithShutdownBehavior(
|
| base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)));
|
| DCHECK(set_protocol);
|
| +#endif
|
|
|
| // Set up interceptors in the reverse order.
|
| scoped_ptr<net::URLRequestJobFactory> top_job_factory =
|
|
|