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

Unified Diff: chrome/browser/sync/chrome_sync_client.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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/sync/chrome_sync_client.h
diff --git a/chrome/browser/sync/chrome_sync_client.h b/chrome/browser/sync/chrome_sync_client.h
index bdd47b8273703d214f60896f6fdec51c001fff3e..b240a7b95bf4486839e53f9cc9526ad04faeb348 100644
--- a/chrome/browser/sync/chrome_sync_client.h
+++ b/chrome/browser/sync/chrome_sync_client.h
@@ -5,7 +5,6 @@
#ifndef CHROME_BROWSER_SYNC_CHROME_SYNC_CLIENT_H__
#define CHROME_BROWSER_SYNC_CHROME_SYNC_CLIENT_H__
-#include <memory>
#include <vector>
#include "base/macros.h"
@@ -22,7 +21,7 @@ namespace password_manager {
class PasswordStore;
}
-namespace syncer {
+namespace sync_driver {
class DeviceInfoTracker;
class SyncApiComponentFactory;
class SyncService;
@@ -30,20 +29,20 @@ class SyncService;
namespace browser_sync {
-class ChromeSyncClient : public syncer::SyncClient {
+class ChromeSyncClient : public sync_driver::SyncClient {
public:
explicit ChromeSyncClient(Profile* profile);
~ChromeSyncClient() override;
// SyncClient implementation.
void Initialize() override;
- syncer::SyncService* GetSyncService() override;
+ sync_driver::SyncService* GetSyncService() override;
PrefService* GetPrefService() override;
bookmarks::BookmarkModel* GetBookmarkModel() override;
favicon::FaviconService* GetFaviconService() override;
history::HistoryService* GetHistoryService() override;
base::Closure GetPasswordStateChangedCallback() override;
- syncer::SyncApiComponentFactory::RegisterDataTypesMethod
+ sync_driver::SyncApiComponentFactory::RegisterDataTypesMethod
GetRegisterPlatformTypesCallback() override;
autofill::PersonalDataManager* GetPersonalDataManager() override;
invalidation::InvalidationService* GetInvalidationService() override;
@@ -52,42 +51,42 @@ class ChromeSyncClient : public syncer::SyncClient {
sync_sessions::SyncSessionsClient* GetSyncSessionsClient() override;
base::WeakPtr<syncer::SyncableService> GetSyncableServiceForType(
syncer::ModelType type) override;
- base::WeakPtr<syncer::ModelTypeService> GetModelTypeServiceForType(
+ base::WeakPtr<syncer_v2::ModelTypeService> GetModelTypeServiceForType(
syncer::ModelType type) override;
scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup(
syncer::ModelSafeGroup group,
syncer::WorkerLoopDestructionObserver* observer) override;
- syncer::SyncApiComponentFactory* GetSyncApiComponentFactory() override;
+ sync_driver::SyncApiComponentFactory* GetSyncApiComponentFactory() override;
// Helpers for overriding getters in tests.
void SetSyncApiComponentFactoryForTesting(
- std::unique_ptr<syncer::SyncApiComponentFactory> component_factory);
+ std::unique_ptr<sync_driver::SyncApiComponentFactory> component_factory);
// Iterates over all of the profiles that have been loaded so far, and
// extracts their tracker if present. If some profiles don't have trackers, no
// indication is given in the passed vector.
static void GetDeviceInfoTrackers(
- std::vector<const syncer::DeviceInfoTracker*>* trackers);
+ std::vector<const sync_driver::DeviceInfoTracker*>* trackers);
private:
// Register data types which are enabled on desktop platforms only.
// |disabled_types| and |enabled_types| correspond only to those types
// being explicitly disabled/enabled by the command line.
- void RegisterDesktopDataTypes(syncer::SyncService* sync_service,
+ void RegisterDesktopDataTypes(sync_driver::SyncService* sync_service,
syncer::ModelTypeSet disabled_types,
syncer::ModelTypeSet enabled_types);
// Register data types which are enabled on Android platforms only.
// |disabled_types| and |enabled_types| correspond only to those types
// being explicitly disabled/enabled by the command line.
- void RegisterAndroidDataTypes(syncer::SyncService* sync_service,
+ void RegisterAndroidDataTypes(sync_driver::SyncService* sync_service,
syncer::ModelTypeSet disabled_types,
syncer::ModelTypeSet enabled_types);
Profile* const profile_;
// The sync api component factory in use by this client.
- std::unique_ptr<syncer::SyncApiComponentFactory> component_factory_;
+ std::unique_ptr<sync_driver::SyncApiComponentFactory> component_factory_;
// Members that must be fetched on the UI thread but accessed on their
// respective backend threads.
« no previous file with comments | « chrome/browser/supervised_user/supervised_user_sync_data_type_controller.cc ('k') | chrome/browser/sync/chrome_sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698