From 6c1409ae57a99596428514872e97e978451cb312 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:37:32 -0500 Subject: [PATCH] chore: remove unused field `ElectronBrowserClient::browser_main_parts_` (#42965) chore: remove unused field ElectronBrowserClient::browser_main_parts_ caller removed in 48d0b09a Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr --- shell/browser/electron_browser_client.cc | 8 +------- shell/browser/electron_browser_client.h | 4 ---- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/shell/browser/electron_browser_client.cc b/shell/browser/electron_browser_client.cc index 849cb3525d6e..206e817345df 100644 --- a/shell/browser/electron_browser_client.cc +++ b/shell/browser/electron_browser_client.cc @@ -824,13 +824,7 @@ ElectronBrowserClient::GetSystemNetworkContext() { std::unique_ptr ElectronBrowserClient::CreateBrowserMainParts(bool /* is_integration_test */) { - auto browser_main_parts = std::make_unique(); - -#if BUILDFLAG(IS_MAC) - browser_main_parts_ = browser_main_parts.get(); -#endif - - return browser_main_parts; + return std::make_unique(); } void ElectronBrowserClient::WebNotificationAllowed( diff --git a/shell/browser/electron_browser_client.h b/shell/browser/electron_browser_client.h index 9f3f7fe8dfdf..d9b58106410e 100644 --- a/shell/browser/electron_browser_client.h +++ b/shell/browser/electron_browser_client.h @@ -339,10 +339,6 @@ class ElectronBrowserClient : public content::ContentBrowserClient, std::unique_ptr hid_delegate_; std::unique_ptr web_authentication_delegate_; - -#if BUILDFLAG(IS_MAC) - raw_ptr browser_main_parts_ = nullptr; -#endif }; } // namespace electron