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

Unified Diff: chrome/browser/prefs/chrome_pref_service_factory.h

Issue 2745563005: Pref service: add support for tracked prefs. (Closed)
Patch Set: deflake tests Created 3 years, 8 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/chrome_pref_service_factory.h
diff --git a/chrome/browser/prefs/chrome_pref_service_factory.h b/chrome/browser/prefs/chrome_pref_service_factory.h
index 48c29eb6e88fc9ed042c9e320f57bb365df40a95..e2d53cf0611e712df8a86ba8d3e08663ed5b38ab 100644
--- a/chrome/browser/prefs/chrome_pref_service_factory.h
+++ b/chrome/browser/prefs/chrome_pref_service_factory.h
@@ -8,6 +8,7 @@
#include <memory>
#include "base/memory/ref_counted.h"
+#include "services/preferences/public/interfaces/tracked_preference_validation_delegate.mojom.h"
namespace base {
class DictionaryValue;
@@ -20,12 +21,6 @@ namespace policy {
class PolicyService;
}
-namespace prefs {
-namespace mojom {
-class TrackedPreferenceValidationDelegate;
-}
-}
-
namespace service_manager {
class Connector;
}
@@ -44,7 +39,6 @@ class PrefService;
class PrefStore;
class Profile;
class SupervisedUserSettingsService;
-class TrackedPreferenceValidationDelegate;
namespace chrome_prefs {
@@ -82,8 +76,7 @@ std::unique_ptr<PrefService> CreateLocalState(
std::unique_ptr<sync_preferences::PrefServiceSyncable> CreateProfilePrefs(
const base::FilePath& pref_filename,
- base::SequencedTaskRunner* pref_io_task_runner,
- prefs::mojom::TrackedPreferenceValidationDelegate* validation_delegate,
+ prefs::mojom::TrackedPreferenceValidationDelegatePtr validation_delegate,
policy::PolicyService* policy_service,
SupervisedUserSettingsService* supervised_user_settings,
const scoped_refptr<PrefStore>& extension_prefs,

Powered by Google App Engine
This is Rietveld 408576698