[ios][cr142] RegisterBrowserStatePrefs => RegisterProfilePrefs
Chromium changes: https://chromium.googlesource.com/chromium/src/+/f054cf6e4083bcebd25428f40297d3356bc8000f commit f054cf6e4083bcebd25428f40297d3356bc8000f Author: Sylvain Defresne <sdefresne@chromium.org> Date: Wed Sep 3 08:49:57 2025 -0700 [ios] Rename RegisterBrowserStatePrefs() to RegisterProfilePrefs() This convert files in //ios/chrome/browser/metrics/model. Bug: 436484783 Change-Id: I408fdfcea1e5d94e254dc1dac265e0d35b5ae918 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6903973 Reviewed-by: Asami Doi <asamidoi@chromium.org> Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/main@{#1510275}
This commit is contained in:
@@ -33,5 +33,5 @@ GoogleGroupsManagerFactory::BuildServiceInstanceFor(ProfileIOS* profile) const {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void GoogleGroupsManagerFactory::RegisterBrowserStatePrefs(
|
||||
void GoogleGroupsManagerFactory::RegisterProfilePrefs(
|
||||
user_prefs::PrefRegistrySyncable* registry) {}
|
||||
|
||||
@@ -36,7 +36,7 @@ AboutSigninInternalsFactory::BuildServiceInstanceFor(
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void AboutSigninInternalsFactory::RegisterBrowserStatePrefs(
|
||||
void AboutSigninInternalsFactory::RegisterProfilePrefs(
|
||||
user_prefs::PrefRegistrySyncable* user_prefs) {}
|
||||
|
||||
} // namespace ios
|
||||
|
||||
@@ -33,7 +33,7 @@ class WebcompatReporterServiceFactory : public ProfileKeyedServiceFactoryIOS {
|
||||
|
||||
private:
|
||||
friend class base::NoDestructor<WebcompatReporterServiceFactory>;
|
||||
void RegisterBrowserStatePrefs(
|
||||
void RegisterProfilePrefs(
|
||||
user_prefs::PrefRegistrySyncable* registry) override;
|
||||
|
||||
WebcompatReporterServiceFactory();
|
||||
|
||||
@@ -41,7 +41,7 @@ WebcompatReporterServiceFactory::WebcompatReporterServiceFactory()
|
||||
|
||||
WebcompatReporterServiceFactory::~WebcompatReporterServiceFactory() {}
|
||||
|
||||
void WebcompatReporterServiceFactory::RegisterBrowserStatePrefs(
|
||||
void WebcompatReporterServiceFactory::RegisterProfilePrefs(
|
||||
user_prefs::PrefRegistrySyncable* registry) {
|
||||
webcompat_reporter::prefs::RegisterProfilePrefs(
|
||||
static_cast<PrefRegistrySimple*>(registry));
|
||||
|
||||
@@ -45,7 +45,7 @@ class SkusServiceFactory : public ProfileKeyedServiceFactoryIOS {
|
||||
// ProfileKeyedServiceFactoryIOS implementation.
|
||||
std::unique_ptr<KeyedService> BuildServiceInstanceFor(
|
||||
web::BrowserState* context) const override;
|
||||
void RegisterBrowserStatePrefs(
|
||||
void RegisterProfilePrefs(
|
||||
user_prefs::PrefRegistrySyncable* registry) override;
|
||||
|
||||
SkusServiceFactory(const SkusServiceFactory&) = delete;
|
||||
|
||||
@@ -61,7 +61,7 @@ std::unique_ptr<KeyedService> SkusServiceFactory::BuildServiceInstanceFor(
|
||||
return sku_service;
|
||||
}
|
||||
|
||||
void SkusServiceFactory::RegisterBrowserStatePrefs(
|
||||
void SkusServiceFactory::RegisterProfilePrefs(
|
||||
user_prefs::PrefRegistrySyncable* registry) {
|
||||
skus::RegisterProfilePrefsForMigration(registry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user