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:
Adam Roben 2013-08-23 08:19:37 -04:00
parent 37679214d1
commit dcaaeacfe3
3 changed files with 8 additions and 4 deletions

View file

@ -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();