[Lacros] Delete LacrosSecondaryProfilesAllowed

This is no longer used. Deprecate the policy and remove the code.

Change-Id: I6c8b358de2877a25edb36dc1a3db6b8dadc88c2c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5920350
Commit-Queue: David Roger <[email protected]>
Reviewed-by: Owen Min <[email protected]>
Reviewed-by: Monica Basta <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1367440}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index f74be30..feedbe22 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1110,6 +1110,8 @@
     "ash.browser_data_migrator.move_migration_resume_step";
 const char kMoveMigrationResumeCountPref[] =
     "ash.browser_data_migrator.move_migration_resume_count";
+const char kLacrosSecondaryProfilesAllowed[] =
+    "lacros_secondary_profiles_allowed";
 #endif
 
 #if !BUILDFLAG(IS_ANDROID)
@@ -1580,6 +1582,11 @@
   registry->RegisterListPref(kTabResumeDismissedTabsPrefName,
                              base::Value::List());
 #endif  // !BUILDFLAG(IS_ANDROID)
+
+// Deprecated 10/2024
+#if BUILDFLAG(IS_CHROMEOS)
+  registry->RegisterBooleanPref(kLacrosSecondaryProfilesAllowed, true);
+#endif  // BUILDFLAG(IS_CHROMEOS)
 }
 
 void ClearSyncRequestedPrefAndMaybeMigrate(PrefService* profile_prefs) {
@@ -2932,6 +2939,11 @@
   profile_prefs->ClearPref(kTabResumeDismissedTabsPrefName);
 #endif  // !BUILDFLAG(IS_ANDROID)
 
+// Added 10/2024
+#if BUILDFLAG(IS_CHROMEOS)
+  profile_prefs->ClearPref(kLacrosSecondaryProfilesAllowed);
+#endif
+
   // Please don't delete the following line. It is used by PRESUBMIT.py.
   // END_MIGRATE_OBSOLETE_PROFILE_PREFS