[segmentation_platform] Store results in prefs
This CL adds
1- Implemented SegmentationResultPrefs for storing segmentation results.
2- Register prefs with chrome that will be loaded with profile.
3- Set up finch params to be used in place of constants.
Bug: 1218522
Change-Id: Ia5a071f71754092931a2a6ed4589e7afe8ec80de
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2929114
Reviewed-by: Colin Blundell <[email protected]>
Reviewed-by: Tommy Nyquist <[email protected]>
Commit-Queue: Shakti Sahu <[email protected]>
Cr-Commit-Position: refs/heads/master@{#893497}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 7c2f450..4ecdb06 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -139,6 +139,7 @@
#include "components/search_engines/template_url_prepopulate_data.h"
#include "components/security_interstitials/content/insecure_form_blocking_page.h"
#include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h"
+#include "components/segmentation_platform/public/segmentation_platform_service.h"
#include "components/sessions/core/session_id_generator.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "components/site_engagement/content/site_engagement_service.h"
@@ -1023,6 +1024,8 @@
registry);
security_interstitials::InsecureFormBlockingPage::RegisterProfilePrefs(
registry);
+ segmentation_platform::SegmentationPlatformService::RegisterProfilePrefs(
+ registry);
SessionStartupPref::RegisterProfilePrefs(registry);
SharingSyncPreference::RegisterProfilePrefs(registry);
site_engagement::SiteEngagementService::RegisterProfilePrefs(registry);