[Dice] Add a user pref to control the migration status
This CL adds functions to enable Dice on a profile and check the
migration status. The status can be checked both from the UI thread and
the IO thread.
The migration status is backed by a user preference.
Bug: 771908
Change-Id: If51d55ff80a6d67f6cb4258e74cc417812c109a0
Reviewed-on: https://chromium-review.googlesource.com/725340
Commit-Queue: David Roger <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Reviewed-by: Mihai Sardarescu <[email protected]>
Cr-Commit-Position: refs/heads/master@{#511120}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 4c29b63..4dc5adb 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -99,6 +99,7 @@
#include "components/rappor/rappor_service_impl.h"
#include "components/safe_browsing/common/safe_browsing_prefs.h"
#include "components/search_engines/template_url_prepopulate_data.h"
+#include "components/signin/core/common/profile_management_switches.h"
#include "components/ssl_config/ssl_config_service_manager.h"
#include "components/startup_metric_utils/browser/startup_metric_utils.h"
#include "components/subresource_filter/core/browser/ruleset_service.h"
@@ -499,6 +500,7 @@
RegisterBrowserUserPrefs(registry);
safe_browsing::RegisterProfilePrefs(registry);
SessionStartupPref::RegisterProfilePrefs(registry);
+ signin::RegisterAccountConsistencyProfilePrefs(registry);
syncer::SyncPrefs::RegisterProfilePrefs(registry);
TemplateURLPrepopulateData::RegisterProfilePrefs(registry);
translate::TranslatePrefs::RegisterProfilePrefs(registry);