Fix assertions when building against Debug libchromiumcontent.

Imported from https://github.com/brightray/brightray/pull/50.
This commit is contained in:
Cheng Zhao 2014-02-05 11:18:32 +08:00
parent dc69c7b694
commit 283aa79c17
4 changed files with 14 additions and 5 deletions

View file

@ -61,7 +61,8 @@ AtomURLRequestContextGetter* AtomBrowserContext::CreateRequestContext(
GetPath(),
BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO),
BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::FILE),
CreateNetworkDelegate().Pass(),
base::Bind(&AtomBrowserContext::CreateNetworkDelegate,
base::Unretained(this)),
protocol_handlers);
resource_context_->set_url_request_context_getter(url_request_getter_.get());