Commit 7173ad07 authored by Sorin Jianu's avatar Sorin Jianu Committed by Commit Bot

Remove unused function RegisterPrefsForRecoveryImprovedComponent

The Improved Recovery Component is not using registering prefs.

Bug: 1027159
Change-Id: I737b602d01d8c22af61f027641b9229c228c27ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1931539
Commit-Queue: Sorin Jianu <sorin@chromium.org>
Reviewed-by: default avatarJoshua Pawlicki <waffles@chromium.org>
Cr-Commit-Position: refs/heads/master@{#720676}
parent e2f88954
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include "chrome/browser/component_updater/chrome_component_updater_configurator.h" #include "chrome/browser/component_updater/chrome_component_updater_configurator.h"
#include "chrome/browser/component_updater/recovery_component_installer.h" #include "chrome/browser/component_updater/recovery_component_installer.h"
#include "chrome/browser/component_updater/recovery_improved_component_installer.h"
#include "chrome/common/buildflags.h" #include "chrome/common/buildflags.h"
#if BUILDFLAG(ENABLE_SUPERVISED_USERS) #if BUILDFLAG(ENABLE_SUPERVISED_USERS)
...@@ -18,7 +17,6 @@ namespace component_updater { ...@@ -18,7 +17,6 @@ namespace component_updater {
void RegisterPrefs(PrefRegistrySimple* registry) { void RegisterPrefs(PrefRegistrySimple* registry) {
RegisterPrefsForChromeComponentUpdaterConfigurator(registry); RegisterPrefsForChromeComponentUpdaterConfigurator(registry);
RegisterPrefsForRecoveryComponent(registry); RegisterPrefsForRecoveryComponent(registry);
RegisterPrefsForRecoveryImprovedComponent(registry);
#if BUILDFLAG(ENABLE_SUPERVISED_USERS) #if BUILDFLAG(ENABLE_SUPERVISED_USERS)
SupervisedUserWhitelistInstaller::RegisterPrefs(registry); SupervisedUserWhitelistInstaller::RegisterPrefs(registry);
#endif #endif
......
...@@ -17,7 +17,6 @@ namespace base { ...@@ -17,7 +17,6 @@ namespace base {
class FilePath; class FilePath;
} // namespace base } // namespace base
class PrefRegistrySimple;
class PrefService; class PrefService;
namespace component_updater { namespace component_updater {
...@@ -61,11 +60,6 @@ class RecoveryImprovedInstallerPolicy : public ComponentInstallerPolicy { ...@@ -61,11 +60,6 @@ class RecoveryImprovedInstallerPolicy : public ComponentInstallerPolicy {
void RegisterRecoveryImprovedComponent(ComponentUpdateService* cus, void RegisterRecoveryImprovedComponent(ComponentUpdateService* cus,
PrefService* prefs); PrefService* prefs);
// Registers user preferences related to the recovery component.
// TODO(sorin): consider removing the function. crbug.com/1027159
inline void RegisterPrefsForRecoveryImprovedComponent(
PrefRegistrySimple* registry) {}
} // namespace component_updater } // namespace component_updater
#endif // CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_IMPROVED_COMPONENT_INSTALLER_H_ #endif // CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_IMPROVED_COMPONENT_INSTALLER_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment