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 @@ -98,6 +98,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 @@ -88,6 +88,7 @@ void ComponentInstaller::Register(RegisterCallback register_callback, base::OnceClosure callback, base::TaskPriority task_priority, const base::Version& registered_version) { + if ((true)) return; DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); task_runner_ = base::ThreadPool::CreateSequencedTaskRunner( 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 @@ -520,7 +520,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 -- 2.25.1