refactor: reduce coupling in electron::api::Protocol
(#46122)
* refactor: decouple api::Protocol from ElectronBrowserContext now they do not know about each other * refactor: make electron::api::ProtocolError private * refactor: remove unused isolate arg in Protocol constructor * refactor: use =default for trivial destructor
This commit is contained in:
parent
603057b198
commit
6723bfbe32
3 changed files with 54 additions and 58 deletions
|
@ -553,7 +553,9 @@ Session::Session(v8::Isolate* isolate, ElectronBrowserContext* browser_context)
|
|||
|
||||
SessionPreferences::CreateForBrowserContext(browser_context);
|
||||
|
||||
protocol_.Reset(isolate, Protocol::Create(isolate, browser_context).ToV8());
|
||||
protocol_.Reset(
|
||||
isolate,
|
||||
Protocol::Create(isolate, browser_context->protocol_registry()).ToV8());
|
||||
|
||||
browser_context->SetUserData(
|
||||
kElectronApiSessionKey,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue