Index: components/sync_preferences/pref_service_syncable_factory.h |
diff --git a/components/sync_preferences/pref_service_syncable_factory.h b/components/sync_preferences/pref_service_syncable_factory.h |
index 9a8994b6c6afe5a833e832823c56cea2c7e2a705..3b9bb3944211379f9e27b7b6a78217c7eddbd795 100644 |
--- a/components/sync_preferences/pref_service_syncable_factory.h |
+++ b/components/sync_preferences/pref_service_syncable_factory.h |
@@ -15,6 +15,10 @@ class BrowserPolicyConnector; |
class PolicyService; |
} |
+namespace service_manager { |
+class Connector; |
+} |
+ |
namespace user_prefs { |
class PrefRegistrySyncable; |
} |
@@ -42,8 +46,11 @@ class PrefServiceSyncableFactory : public PrefServiceFactory { |
void SetPrefModelAssociatorClient( |
PrefModelAssociatorClient* pref_model_associator_client); |
+ // |connector| might be null during test or if we're not using the Mojo pref |
+ // |service. |
std::unique_ptr<PrefServiceSyncable> CreateSyncable( |
- user_prefs::PrefRegistrySyncable* registry); |
+ user_prefs::PrefRegistrySyncable* registry, |
+ service_manager::Connector* connector = nullptr); |
private: |
PrefModelAssociatorClient* pref_model_associator_client_; |