Remove leftover lacros profile migration code [2/N].
Lacros profile migration is already gone in crrev.com/c/5904867.
This patch removes some code that were left but has no more use.
Bug: 361267995
Change-Id: I4d22b7026e3d9b77a7a60b5748485fb57a55588b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5936988
Reviewed-by: Hidehiko Abe <[email protected]>
Commit-Queue: Yuta Hijikata <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1371215}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index af8150f4..7319a111 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1118,6 +1118,15 @@
"ash.browser_data_migrator.move_migration_resume_count";
const char kLacrosSecondaryProfilesAllowed[] =
"lacros_secondary_profiles_allowed";
+constexpr char kDataVerPref[] = "lacros.data_version";
+constexpr char kMigrationAttemptCountPref[] =
+ "ash.browser_data_migrator.migration_attempt_count";
+constexpr char kProfileMigrationCompletedForUserPref[] =
+ "lacros.profile_migration_completed_for_user";
+constexpr char kProfileMoveMigrationCompletedForUserPref[] =
+ "lacros.profile_move_migration_completed_for_user";
+constexpr char kProfileMigrationCompletedForNewUserPref[] =
+ "lacros.profile_migration_completed_for_new_user";
#endif
#if !BUILDFLAG(IS_ANDROID)
@@ -1239,6 +1248,11 @@
registry->RegisterIntegerPref(kMigrationStep, 0);
registry->RegisterDictionaryPref(kMoveMigrationResumeStepPref);
registry->RegisterDictionaryPref(kMoveMigrationResumeCountPref);
+ registry->RegisterDictionaryPref(kDataVerPref);
+ registry->RegisterDictionaryPref(kMigrationAttemptCountPref);
+ registry->RegisterDictionaryPref(kProfileMigrationCompletedForUserPref);
+ registry->RegisterDictionaryPref(kProfileMoveMigrationCompletedForUserPref);
+ registry->RegisterDictionaryPref(kProfileMigrationCompletedForNewUserPref);
#endif
#if !BUILDFLAG(IS_ANDROID)
@@ -1823,7 +1837,6 @@
ash::SchedulerConfigurationManager::RegisterLocalStatePrefs(registry);
ash::SecureDnsManager::RegisterLocalStatePrefs(registry);
ash::ServicesCustomizationDocument::RegisterPrefs(registry);
- ash::standalone_browser::migrator_util::RegisterLocalStatePrefs(registry);
ash::StartupUtils::RegisterPrefs(registry);
ash::StatsReportingController::RegisterLocalStatePrefs(registry);
ash::system::AutomaticRebootManager::RegisterPrefs(registry);
@@ -2537,6 +2550,11 @@
local_state->ClearPref(kMigrationStep);
local_state->ClearPref(kMoveMigrationResumeStepPref);
local_state->ClearPref(kMoveMigrationResumeCountPref);
+ local_state->ClearPref(kDataVerPref);
+ local_state->ClearPref(kMigrationAttemptCountPref);
+ local_state->ClearPref(kProfileMigrationCompletedForUserPref);
+ local_state->ClearPref(kProfileMoveMigrationCompletedForUserPref);
+ local_state->ClearPref(kProfileMigrationCompletedForNewUserPref);
#endif
#if !BUILDFLAG(IS_ANDROID)