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

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

Issue 2601873002: Add a mojo bridge for PersistentPrefStore. (Closed)
Patch Set: rebase 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.h
diff --git a/chrome/browser/prefs/profile_pref_store_manager.h b/chrome/browser/prefs/profile_pref_store_manager.h
index c79ef0b012208d333caecad642f4c34eccb0803e..42cddc540d1b5b07490e38bd14e959e89d1295a7 100644
--- a/chrome/browser/prefs/profile_pref_store_manager.h
+++ b/chrome/browser/prefs/profile_pref_store_manager.h
@@ -15,6 +15,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "components/user_prefs/tracked/pref_hash_filter.h"
+#include "services/preferences/public/interfaces/tracked_preference_validation_delegate.mojom.h"
class HashStoreContents;
class PersistentPrefStore;
@@ -24,6 +25,7 @@ class PrefService;
namespace base {
class DictionaryValue;
class SequencedTaskRunner;
+class SingleThreadTaskRunner;
} // namespace base
namespace prefs {
@@ -89,9 +91,11 @@ class ProfilePrefStoreManager {
// An optional |validation_delegate| will be notified
// of the status of each tracked preference as they are checked.
PersistentPrefStore* CreateProfilePrefStore(
+ const scoped_refptr<base::SingleThreadTaskRunner>& pref_task_runner,
const scoped_refptr<base::SequencedTaskRunner>& io_task_runner,
const base::Closure& on_reset_on_load,
- prefs::mojom::TrackedPreferenceValidationDelegate* validation_delegate);
+ std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate>*
+ validation_delegate);
// Initializes the preferences for the managed profile with the preference
// values in |master_prefs|. Acts synchronously, including blocking IO.

Powered by Google App Engine
This is Rietveld 408576698