Avoid storing JobFactory in BrowserContext
JobFactory should always be created and accessed in IO thread.
This commit is contained in:
parent
9372d4df32
commit
659384383e
5 changed files with 20 additions and 39 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue