HaTS capability extensions for evaluating One Time Permissions
- Count number of prompt decisions a user has taken on one time permission prompts (i.e. number of interactions with ephemeral prompts).
- Assign user to the following buckets based on this number: 0-1, 2-3, 4-5, 6-10, 11-20, >20.
- Report the bucket a user belongs to with survey responses
- Add filter capability to HaTS Prompt Surveys to filter on these buckets
Bug: 1430424
Change-Id: Ib3716f74d5ce31c6fff220b458b27e7f274df0c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4394970
Reviewed-by: Ehimare Okoyomon <[email protected]>
Reviewed-by: Theodore Olsauskas-Warren <[email protected]>
Code-Coverage: Findit <[email protected]>
Commit-Queue: Florian Jacky <[email protected]>
Reviewed-by: Gabriel Charette <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1131151}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 03e03d8..f09d7a51 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -287,6 +287,7 @@
#include "components/live_caption/live_caption_controller.h"
#include "components/live_caption/live_translate_controller.h"
#include "components/ntp_tiles/custom_links_manager_impl.h"
+#include "components/permissions/permission_hats_trigger_helper.h"
#include "components/user_notes/user_notes_prefs.h"
#endif // BUILDFLAG(IS_ANDROID)
@@ -1777,6 +1778,7 @@
#if !BUILDFLAG(IS_ANDROID)
registry->RegisterIntegerPref(prefs::kHighEfficiencyChipExpandedCount, 0);
+ permissions::PermissionHatsTriggerHelper::RegisterProfilePrefs(registry);
#endif
#if BUILDFLAG(IS_ANDROID)