From a2aacd7f2541380eaa51a60f47314f4681e31433 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 14:50:09 -0500 Subject: [PATCH] fix: remove redundant `MediaCaptureDevicesDispatcher::GetInstance()` call (#45962) fix: remove redundant MediaCaptureDevicesDispatcher::GetInstance() call This appears to be a copy-paste error introduced in 465dee2c Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr --- shell/browser/electron_browser_main_parts.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/shell/browser/electron_browser_main_parts.cc b/shell/browser/electron_browser_main_parts.cc index 66c3cef19ed8..dfdec38f1609 100644 --- a/shell/browser/electron_browser_main_parts.cc +++ b/shell/browser/electron_browser_main_parts.cc @@ -344,9 +344,6 @@ int ElectronBrowserMainParts::PreCreateThreads() { // Force MediaCaptureDevicesDispatcher to be created on UI thread. MediaCaptureDevicesDispatcher::GetInstance(); - // Force MediaCaptureDevicesDispatcher to be created on UI thread. - MediaCaptureDevicesDispatcher::GetInstance(); - #if BUILDFLAG(IS_MAC) ui::InitIdleMonitor(); Browser::Get()->ApplyForcedRTL();