privacy-hub: Remove HaTS code
Happiness tracking surveys have wrapped up. Remove the outdated HaTS
client code to reduce dead code.
Bug: 380421104
Change-Id: Ic84d79fe8a309e2ffb4e6035dc7a68353602ea64
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6038050
Auto-Submit: Christoph Schlosser <[email protected]>
Commit-Queue: Kyle Horimoto <[email protected]>
Reviewed-by: Kyle Horimoto <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1388485}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 5435f8bf..98f7106 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1167,6 +1167,14 @@
"profile.content_settings.quiet_permission_ui_promo.should_show."
"notifications";
+#if BUILDFLAG(IS_CHROMEOS_ASH)
+// Deprecated 11/2024
+inline constexpr char kHatsPrivacyHubPostLaunchIsSelected[] =
+ "hats_privacy_hub_postlaunch_is_selected";
+inline constexpr char kHatsPrivacyHubPostLaunchCycleEndTs[] =
+ "hats_privacy_hub_postlaunch_end_timestamp";
+#endif
+
// Register local state used only for migration (clearing or moving to a new
// key).
void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -1655,6 +1663,11 @@
true);
registry->RegisterBooleanPref(kQuietNotificationPermissionShouldShowPromo,
true);
+#if BUILDFLAG(IS_CHROMEOS_ASH)
+ // Deprecated 11/2024
+ registry->RegisterBooleanPref(kHatsPrivacyHubPostLaunchIsSelected, false);
+ registry->RegisterInt64Pref(kHatsPrivacyHubPostLaunchCycleEndTs, 0);
+#endif
}
void ClearSyncRequestedPrefAndMaybeMigrate(PrefService* profile_prefs) {
@@ -3018,6 +3031,12 @@
profile_prefs->ClearPref(kQuietNotificationPermissionPromoWasShown);
profile_prefs->ClearPref(kQuietNotificationPermissionShouldShowPromo);
+#if BUILDFLAG(IS_CHROMEOS_ASH)
+ // Added 11/2024
+ profile_prefs->ClearPref(kHatsPrivacyHubPostLaunchIsSelected);
+ profile_prefs->ClearPref(kHatsPrivacyHubPostLaunchCycleEndTs);
+#endif
+
// Please don't delete the following line. It is used by PRESUBMIT.py.
// END_MIGRATE_OBSOLETE_PROFILE_PREFS