Index: headless/lib/browser/headless_url_request_context_getter.cc |
diff --git a/headless/lib/browser/headless_url_request_context_getter.cc b/headless/lib/browser/headless_url_request_context_getter.cc |
index 32645f9829c89e28726e069f84fd2aba8a6e8621..40e58a1107d6dc7dfe33ef38d87622949e811094 100644 |
--- a/headless/lib/browser/headless_url_request_context_getter.cc |
+++ b/headless/lib/browser/headless_url_request_context_getter.cc |
@@ -60,6 +60,9 @@ HeadlessURLRequestContextGetter::GetURLRequestContext() { |
// TODO(skyostil): Make these configurable. |
builder.set_data_enabled(true); |
builder.set_file_enabled(true); |
+ builder.SetFileTaskRunner( |
+ content::BrowserThread::GetMessageLoopProxyForThread( |
+ content::BrowserThread::FILE)); |
if (!proxy_server_.IsEmpty()) { |
builder.set_proxy_service( |
net::ProxyService::CreateFixed(proxy_server_.ToString())); |