Avoid storing JobFactory in BrowserContext

JobFactory should always be created and accessed in IO thread.
This commit is contained in:
Cheng Zhao 2016-06-15 20:31:29 +09:00
parent 9372d4df32
commit 659384383e
5 changed files with 20 additions and 39 deletions

View file

@ -27,10 +27,8 @@ namespace atom {
namespace api {
Protocol::Protocol(v8::Isolate* isolate, AtomBrowserContext* browser_context)
: browser_context_(browser_context),
request_context_getter_(browser_context->GetRequestContext()),
: request_context_getter_(browser_context->GetRequestContext()),
weak_factory_(this) {
CHECK(job_factory());
Init(isolate);
}