chore: use node_bindings loop for clarity (#24391)
This commit is contained in:
parent
9106d0c6d5
commit
4398ecb6c8
2 changed files with 2 additions and 2 deletions
|
@ -251,7 +251,7 @@ ElectronBrowserMainParts::ElectronBrowserMainParts(
|
||||||
browser_(new Browser),
|
browser_(new Browser),
|
||||||
node_bindings_(
|
node_bindings_(
|
||||||
NodeBindings::Create(NodeBindings::BrowserEnvironment::BROWSER)),
|
NodeBindings::Create(NodeBindings::BrowserEnvironment::BROWSER)),
|
||||||
electron_bindings_(new ElectronBindings(uv_default_loop())) {
|
electron_bindings_(new ElectronBindings(node_bindings_->uv_loop())) {
|
||||||
DCHECK(!self_) << "Cannot have two ElectronBrowserMainParts";
|
DCHECK(!self_) << "Cannot have two ElectronBrowserMainParts";
|
||||||
self_ = this;
|
self_ = this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ bool IsDevToolsExtension(content::RenderFrame* render_frame) {
|
||||||
ElectronRendererClient::ElectronRendererClient()
|
ElectronRendererClient::ElectronRendererClient()
|
||||||
: node_bindings_(
|
: node_bindings_(
|
||||||
NodeBindings::Create(NodeBindings::BrowserEnvironment::RENDERER)),
|
NodeBindings::Create(NodeBindings::BrowserEnvironment::RENDERER)),
|
||||||
electron_bindings_(new ElectronBindings(uv_default_loop())) {}
|
electron_bindings_(new ElectronBindings(node_bindings_->uv_loop())) {}
|
||||||
|
|
||||||
ElectronRendererClient::~ElectronRendererClient() {
|
ElectronRendererClient::~ElectronRendererClient() {
|
||||||
asar::ClearArchives();
|
asar::ClearArchives();
|
||||||
|
|
Loading…
Reference in a new issue