Fix assertions in Debug builds about using NetworkDelegate on the wrong thread
We have to create it on the IO thread.
This commit is contained in:
parent
37679214d1
commit
dcaaeacfe3
3 changed files with 8 additions and 4 deletions
|
@ -106,7 +106,7 @@ net::URLRequestContextGetter* BrowserContext::CreateRequestContext(
|
|||
GetPath(),
|
||||
io_loop,
|
||||
file_loop,
|
||||
CreateNetworkDelegate().Pass(),
|
||||
base::Bind(&BrowserContext::CreateNetworkDelegate, base::Unretained(this)),
|
||||
protocol_handlers);
|
||||
resource_context_->set_url_request_context_getter(url_request_getter_.get());
|
||||
return url_request_getter_.get();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue