Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2815)

Unified Diff: chrome/browser/prefs/profile_pref_store_manager.cc

Issue 2745563005: Pref service: add support for tracked prefs. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/prefs/profile_pref_store_manager.cc
diff --git a/chrome/browser/prefs/profile_pref_store_manager.cc b/chrome/browser/prefs/profile_pref_store_manager.cc
index 891e7be0844b4ae6ca38065342c3fe0ad4b4333d..b941ef3a077108cf5e0daaf5ffd38b13cfafde00 100644
--- a/chrome/browser/prefs/profile_pref_store_manager.cc
+++ b/chrome/browser/prefs/profile_pref_store_manager.cc
@@ -23,6 +23,7 @@
#include "components/user_prefs/tracked/pref_hash_store_impl.h"
#include "components/user_prefs/tracked/segregated_pref_store.h"
#include "components/user_prefs/tracked/tracked_preferences_migration.h"
+#include "services/preferences/public/interfaces/preferences_configuration.mojom.h"
#if defined(OS_WIN)
#include "chrome/install_static/install_util.h"
@@ -120,7 +121,8 @@ PersistentPrefStore* ProfilePrefStoreManager::CreateProfilePrefStore(
it = tracking_configuration_.begin();
it != tracking_configuration_.end();
++it) {
- if (it->enforcement_level > PrefHashFilter::NO_ENFORCEMENT) {
+ if (it->enforcement_level >
+ PrefHashFilter::EnforcementLevel::NO_ENFORCEMENT) {
protected_configuration.push_back(*it);
protected_pref_names.insert(it->name);
} else {

Powered by Google App Engine
This is Rietveld 408576698