From 4398ecb6c82607cb973ed649a31950e14d723cc4 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Fri, 3 Jul 2020 09:19:27 -0700 Subject: [PATCH] chore: use node_bindings loop for clarity (#24391) --- shell/browser/electron_browser_main_parts.cc | 2 +- shell/renderer/electron_renderer_client.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/browser/electron_browser_main_parts.cc b/shell/browser/electron_browser_main_parts.cc index 189a599cecdb..3fd2090f7ac1 100644 --- a/shell/browser/electron_browser_main_parts.cc +++ b/shell/browser/electron_browser_main_parts.cc @@ -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; } diff --git a/shell/renderer/electron_renderer_client.cc b/shell/renderer/electron_renderer_client.cc index 1374ef151a66..3901eb23bad3 100644 --- a/shell/renderer/electron_renderer_client.cc +++ b/shell/renderer/electron_renderer_client.cc @@ -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();