chore: use node_bindings loop for clarity
This commit is contained in:
Родитель
4c449fbc75
Коммит
3c36042b7c
|
@ -251,7 +251,7 @@ ElectronBrowserMainParts::ElectronBrowserMainParts(
|
|||
browser_(new Browser),
|
||||
node_bindings_(
|
||||
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";
|
||||
self_ = this;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ bool IsDevToolsExtension(content::RenderFrame* render_frame) {
|
|||
ElectronRendererClient::ElectronRendererClient()
|
||||
: node_bindings_(
|
||||
NodeBindings::Create(NodeBindings::BrowserEnvironment::RENDERER)),
|
||||
electron_bindings_(new ElectronBindings(uv_default_loop())) {}
|
||||
electron_bindings_(new ElectronBindings(node_bindings_->uv_loop())) {}
|
||||
|
||||
ElectronRendererClient::~ElectronRendererClient() {
|
||||
asar::ClearArchives();
|
||||
|
|
Загрузка…
Ссылка в новой задаче