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

Unified Diff: chrome/browser/sync/profile_sync_components_factory_impl.cc

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 6 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/profile_sync_components_factory_impl.cc
diff --git a/chrome/browser/sync/profile_sync_components_factory_impl.cc b/chrome/browser/sync/profile_sync_components_factory_impl.cc
index 930bf0d36e62b95cd54e54eccfae7f952322a213..7f1069619cd2ab94d0f7ede708294808e4c13a47 100644
--- a/chrome/browser/sync/profile_sync_components_factory_impl.cc
+++ b/chrome/browser/sync/profile_sync_components_factory_impl.cc
@@ -209,8 +209,8 @@ browser_sync::GenericChangeProcessor*
ProfileSyncComponentsFactoryImpl::CreateGenericChangeProcessor(
ProfileSyncService* profile_sync_service,
browser_sync::DataTypeErrorHandler* error_handler,
- const base::WeakPtr<csync::SyncableService>& local_service) {
- csync::UserShare* user_share = profile_sync_service->GetUserShare();
+ const base::WeakPtr<syncer::SyncableService>& local_service) {
+ syncer::UserShare* user_share = profile_sync_service->GetUserShare();
return new GenericChangeProcessor(error_handler,
local_service,
user_share);
@@ -221,10 +221,10 @@ browser_sync::SharedChangeProcessor* ProfileSyncComponentsFactoryImpl::
return new SharedChangeProcessor();
}
-base::WeakPtr<csync::SyncableService> ProfileSyncComponentsFactoryImpl::
+base::WeakPtr<syncer::SyncableService> ProfileSyncComponentsFactoryImpl::
GetSyncableServiceForType(syncable::ModelType type) {
if (!profile_) { // For tests.
- return base::WeakPtr<csync::SyncableService>();
+ return base::WeakPtr<syncer::SyncableService>();
}
switch (type) {
case syncable::PREFERENCES:
@@ -232,7 +232,7 @@ base::WeakPtr<csync::SyncableService> ProfileSyncComponentsFactoryImpl::
case syncable::AUTOFILL:
case syncable::AUTOFILL_PROFILE: {
if (!web_data_service_.get())
- return base::WeakPtr<csync::SyncableService>();
+ return base::WeakPtr<syncer::SyncableService>();
if (type == syncable::AUTOFILL) {
return web_data_service_->GetAutocompleteSyncableService()->AsWeakPtr();
} else {
@@ -254,14 +254,14 @@ base::WeakPtr<csync::SyncableService> ProfileSyncComponentsFactoryImpl::
app_notification_manager()->AsWeakPtr();
default:
// The following datatypes still need to be transitioned to the
- // csync::SyncableService API:
+ // syncer::SyncableService API:
// Bookmarks
// Passwords
// Sessions
// Themes
// Typed URLs
NOTREACHED();
- return base::WeakPtr<csync::SyncableService>();
+ return base::WeakPtr<syncer::SyncableService>();
}
}
@@ -271,7 +271,7 @@ ProfileSyncComponentsFactory::SyncComponents
DataTypeErrorHandler* error_handler) {
BookmarkModel* bookmark_model =
profile_sync_service->profile()->GetBookmarkModel();
- csync::UserShare* user_share = profile_sync_service->GetUserShare();
+ syncer::UserShare* user_share = profile_sync_service->GetUserShare();
// TODO(akalin): We may want to propagate this switch up eventually.
#if defined(OS_ANDROID)
const bool kExpectMobileBookmarksFolder = true;
« no previous file with comments | « chrome/browser/sync/profile_sync_components_factory_impl.h ('k') | chrome/browser/sync/profile_sync_components_factory_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698