Remove |kGuestProfilesNumCreated| profile state.
|kGuestProfilesNumCreated| profile state was added to keep track of the
number of Ephemeral Guest profiles.
Ephemeral Guest profiles are deprecated and removed and so this state is
not needed anymore.
Bug: 1225156
Change-Id: I292913f5251d43ccc718ffea6d285532b591b744
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3015511
Commit-Queue: Ramin Halavati <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Cr-Commit-Position: refs/heads/master@{#900961}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index a229a85a..1027493 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -627,6 +627,7 @@
"profile.number_sign_in_password_promo_shown";
const char kSignInPasswordPromoRevive[] =
"profile.sign_in_password_promo_revive";
+const char kGuestProfilesNumCreated[] = "profile.guest_profiles_created";
#if BUILDFLAG(ENABLE_DICE_SUPPORT)
constexpr char kProfileSwitchInterceptionDeclinedPref[] =
"signin.ProfileSwitchInterceptionDeclinedPref";
@@ -804,6 +805,7 @@
registry->RegisterBooleanPref(kWasSignInPasswordPromoClicked, false);
registry->RegisterIntegerPref(kNumberSignInPasswordPromoShown, 0);
registry->RegisterBooleanPref(kSignInPasswordPromoRevive, false);
+ registry->RegisterIntegerPref(kGuestProfilesNumCreated, 1);
#if BUILDFLAG(ENABLE_DICE_SUPPORT)
registry->RegisterDictionaryPref(kProfileSwitchInterceptionDeclinedPref);
@@ -1584,6 +1586,7 @@
profile_prefs->ClearPref(kWasSignInPasswordPromoClicked);
profile_prefs->ClearPref(kNumberSignInPasswordPromoShown);
profile_prefs->ClearPref(kSignInPasswordPromoRevive);
+ profile_prefs->ClearPref(kGuestProfilesNumCreated);
#if BUILDFLAG(ENABLE_DICE_SUPPORT)
profile_prefs->ClearPref(kProfileSwitchInterceptionDeclinedPref);
#endif