Remove leftover lacros profile migration code [3/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: I5485a87424a7c3023df7cbe1fe78b4fbb67351ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5937288
Reviewed-by: Hidehiko Abe <[email protected]>
Commit-Queue: Yuta Hijikata <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1373698}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 2319a2e..ae975df 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -367,7 +367,6 @@
#include "chrome/browser/ash/child_accounts/screen_time_controller.h"
#include "chrome/browser/ash/child_accounts/time_limits/app_activity_registry.h"
#include "chrome/browser/ash/child_accounts/time_limits/app_time_controller.h"
-#include "chrome/browser/ash/crosapi/browser_util.h"
#include "chrome/browser/ash/crostini/crostini_pref_names.h"
#include "chrome/browser/ash/cryptauth/client_app_metadata_provider_service.h"
#include "chrome/browser/ash/cryptauth/cryptauth_device_id_provider_impl.h"
@@ -1095,6 +1094,11 @@
"lacros.profile_move_migration_completed_for_user";
constexpr char kProfileMigrationCompletedForNewUserPref[] =
"lacros.profile_migration_completed_for_new_user";
+const char kProfileDataBackwardMigrationCompletedForUserPref[] =
+ "lacros.profile_data_backward_migration_completed_for_user";
+const char kGotoFilesPref[] = "lacros.goto_files";
+const char kProfileMigrationCompletionTimeForUserPref[] =
+ "lacros.profile_migration_completion_time_for_user";
#endif
#if !BUILDFLAG(IS_ANDROID)
@@ -1219,6 +1223,10 @@
registry->RegisterDictionaryPref(kProfileMigrationCompletedForUserPref);
registry->RegisterDictionaryPref(kProfileMoveMigrationCompletedForUserPref);
registry->RegisterDictionaryPref(kProfileMigrationCompletedForNewUserPref);
+ registry->RegisterDictionaryPref(
+ kProfileDataBackwardMigrationCompletedForUserPref);
+ registry->RegisterListPref(kGotoFilesPref);
+ registry->RegisterDictionaryPref(kProfileMigrationCompletionTimeForUserPref);
#endif
#if !BUILDFLAG(IS_ANDROID)
@@ -1756,7 +1764,6 @@
ash::ManagedCellularPrefHandler::RegisterLocalStatePrefs(registry);
ash::ChromeSessionManager::RegisterPrefs(registry);
user_manager::UserManagerImpl::RegisterPrefs(registry);
- crosapi::browser_util::RegisterLocalStatePrefs(registry);
ash::CupsPrintersManager::RegisterLocalStatePrefs(registry);
ash::bluetooth_config::BluetoothPowerControllerImpl::RegisterLocalStatePrefs(
registry);
@@ -2498,6 +2505,9 @@
local_state->ClearPref(kProfileMigrationCompletedForUserPref);
local_state->ClearPref(kProfileMoveMigrationCompletedForUserPref);
local_state->ClearPref(kProfileMigrationCompletedForNewUserPref);
+ local_state->ClearPref(kProfileDataBackwardMigrationCompletedForUserPref);
+ local_state->ClearPref(kGotoFilesPref);
+ local_state->ClearPref(kProfileMigrationCompletionTimeForUserPref);
#endif
#if !BUILDFLAG(IS_ANDROID)