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

Unified Diff: services/preferences/public/cpp/persistent_pref_store_client.cc

Issue 2746023002: Pref service: enable for user prefs in chrome behind a flag. (Closed)
Patch Set: no, the other pref service 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
« no previous file with comments | « mojo/public/cpp/bindings/sync_call_restrictions.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/preferences/public/cpp/persistent_pref_store_client.cc
diff --git a/services/preferences/public/cpp/persistent_pref_store_client.cc b/services/preferences/public/cpp/persistent_pref_store_client.cc
index 5b6d6f1b3e133c41db1b3834fd358dbed83f4335..62fdd27ad4f732bce06d58da5daaaa139b88b00f 100644
--- a/services/preferences/public/cpp/persistent_pref_store_client.cc
+++ b/services/preferences/public/cpp/persistent_pref_store_client.cc
@@ -8,6 +8,7 @@
#include "base/values.h"
#include "components/prefs/pref_registry.h"
+#include "mojo/public/cpp/bindings/sync_call_restrictions.h"
#include "services/preferences/public/cpp/pref_registry_serializer.h"
namespace prefs {
@@ -82,6 +83,7 @@ PersistentPrefStore::PrefReadError PersistentPrefStoreClient::ReadPrefs() {
std::unordered_map<PrefValueStore::PrefStoreType,
prefs::mojom::PrefStoreConnectionPtr>
other_pref_stores;
+ mojo::SyncCallRestrictions::ScopedAllowSyncCall allow_sync_calls;
if (!connector_->Connect(SerializePrefRegistry(*pref_registry_), &connection,
&other_pref_stores)) {
NOTREACHED();
« no previous file with comments | « mojo/public/cpp/bindings/sync_call_restrictions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698