From: uazo Date: Tue, 8 Nov 2022 12:41:22 +0000 Subject: Disable Component Updates License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html --- chrome/browser/component_updater/registration.cc | 1 + components/component_updater/component_installer.cc | 1 + components/component_updater/component_updater_service.cc | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/browser/component_updater/registration.cc b/chrome/browser/component_updater/registration.cc --- a/chrome/browser/component_updater/registration.cc +++ b/chrome/browser/component_updater/registration.cc @@ -100,6 +100,7 @@ namespace component_updater { void RegisterComponentsForUpdate() { + if ((true)) return; auto* const cus = g_browser_process->component_updater(); #if BUILDFLAG(IS_WIN) diff --git a/components/component_updater/component_installer.cc b/components/component_updater/component_installer.cc --- a/components/component_updater/component_installer.cc +++ b/components/component_updater/component_installer.cc @@ -97,6 +97,7 @@ void ComponentInstaller::Register(ComponentUpdateService* cus, void ComponentInstaller::Register(RegisterCallback register_callback, base::OnceClosure callback, const base::Version& registered_version) { + if ((true)) return; DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); if (!installer_policy_) { diff --git a/components/component_updater/component_updater_service.cc b/components/component_updater/component_updater_service.cc --- a/components/component_updater/component_updater_service.cc +++ b/components/component_updater/component_updater_service.cc @@ -530,7 +530,7 @@ std::unique_ptr ComponentUpdateServiceFactory( // Register prefs required by the component update service. void RegisterComponentUpdateServicePrefs(PrefRegistrySimple* registry) { // The component updates are enabled by default, if the preference is not set. - registry->RegisterBooleanPref(prefs::kComponentUpdatesEnabled, true); + registry->RegisterBooleanPref(prefs::kComponentUpdatesEnabled, false); } } // namespace component_updater --