Add ukm data to help with training ML models in the backend for permission predictions.

Added the following ukm metrics:
1. What % of prompts from the last 28 days did the user grant/deny/dismiss/ignore on average across all origins and permission types; and on average across all origins for the currently requested Permission type. Each rounded to the nearest 10%.

2. The total number of prompts across all origins and permission types, and across all origins for the currently requested Permission type seen by the user in the last 28 days. Exponentially bucketed.

Approval doc - go/permissions-crowd-consent-ukm

Bug: 1251602
Change-Id: I117ff4fbfd821bf050cfaa39351b644bc0beb9a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3168882
Commit-Queue: Ravjit Singh Uppal <[email protected]>
Reviewed-by: Balazs Engedy <[email protected]>
Reviewed-by: Jesse Doherty <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Reviewed-by: Gabriel Charette <[email protected]>
Reviewed-by: Christian Dullweber <[email protected]>
Cr-Commit-Position: refs/heads/main@{#931963}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index b2b18bd9..59fcf9b 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -128,6 +128,7 @@
 #include "components/optimization_guide/core/optimization_guide_prefs.h"
 #include "components/password_manager/core/browser/password_manager.h"
 #include "components/payments/core/payment_prefs.h"
+#include "components/permissions/permission_actions_history.h"
 #include "components/policy/core/browser/browser_policy_connector.h"
 #include "components/policy/core/browser/url_blocklist_manager.h"
 #include "components/policy/core/common/policy_pref_names.h"
@@ -1162,6 +1163,7 @@
   optimization_guide::prefs::RegisterProfilePrefs(registry);
   password_manager::PasswordManager::RegisterProfilePrefs(registry);
   payments::RegisterProfilePrefs(registry);
+  permissions::PermissionActionsHistory::RegisterProfilePrefs(registry);
   PermissionBubbleMediaAccessHandler::RegisterProfilePrefs(registry);
   PlatformNotificationServiceImpl::RegisterProfilePrefs(registry);
   policy::DeveloperToolsPolicyHandler::RegisterProfilePrefs(registry);