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

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

Issue 1305213009: Componentize PrefSyncableService and support classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable
Patch Set: Add missing dependency on //sync:test_support_sync_api for unit tests with gn Created 5 years, 3 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/pref_service_syncable_factory.h
diff --git a/chrome/browser/prefs/pref_service_syncable_factory.h b/chrome/browser/prefs/pref_service_syncable_factory.h
deleted file mode 100644
index 0b33f2548ab42d334de86933f4b350b33ec4f380..0000000000000000000000000000000000000000
--- a/chrome/browser/prefs/pref_service_syncable_factory.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_FACTORY_H_
-#define CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_FACTORY_H_
-
-#include "base/prefs/pref_service_factory.h"
-
-class PrefModelAssociatorClient;
-class PrefServiceSyncable;
-
-namespace base {
-class CommandLine;
-}
-
-namespace policy {
-class BrowserPolicyConnector;
-class PolicyService;
-}
-
-namespace user_prefs {
-class PrefRegistrySyncable;
-}
-
-// A PrefServiceFactory that also knows how to build a
-// PrefServiceSyncable, and may know about Chrome concepts such as
-// PolicyService.
-class PrefServiceSyncableFactory : public base::PrefServiceFactory {
- public:
- PrefServiceSyncableFactory();
- ~PrefServiceSyncableFactory() override;
-
-#if defined(ENABLE_CONFIGURATION_POLICY)
- // Set up policy pref stores using the given policy service and connector.
- void SetManagedPolicies(policy::PolicyService* service,
- policy::BrowserPolicyConnector* connector);
- void SetRecommendedPolicies(policy::PolicyService* service,
- policy::BrowserPolicyConnector* connector);
-#endif
-
- void SetPrefModelAssociatorClient(
- PrefModelAssociatorClient* pref_model_associator_client);
-
- scoped_ptr<PrefServiceSyncable> CreateSyncable(
- user_prefs::PrefRegistrySyncable* registry);
-
- private:
- PrefModelAssociatorClient* pref_model_associator_client_;
-
- DISALLOW_COPY_AND_ASSIGN(PrefServiceSyncableFactory);
-};
-
-#endif // CHROME_BROWSER_PREFS_PREF_SERVICE_SYNCABLE_FACTORY_H_
« no previous file with comments | « chrome/browser/prefs/pref_service_syncable.cc ('k') | chrome/browser/prefs/pref_service_syncable_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698