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

Unified Diff: sync/internal_api/sync_manager_impl.cc

Issue 351523003: sync: Mass rename of non-blocking sync classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const ref some smart pointers Created 6 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
« no previous file with comments | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/sync_rollback_manager_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/sync_manager_impl.cc
diff --git a/sync/internal_api/sync_manager_impl.cc b/sync/internal_api/sync_manager_impl.cc
index a5f2de070f39214d01f033f47b6719e88d6f200a..bf733155ee7a377d006a2287ea8e0f1cd4c807ea 100644
--- a/sync/internal_api/sync_manager_impl.cc
+++ b/sync/internal_api/sync_manager_impl.cc
@@ -28,13 +28,13 @@
#include "sync/internal_api/public/internal_components_factory.h"
#include "sync/internal_api/public/read_node.h"
#include "sync/internal_api/public/read_transaction.h"
-#include "sync/internal_api/public/sync_core_proxy.h"
+#include "sync/internal_api/public/sync_context_proxy.h"
#include "sync/internal_api/public/user_share.h"
#include "sync/internal_api/public/util/experiments.h"
#include "sync/internal_api/public/write_node.h"
#include "sync/internal_api/public/write_transaction.h"
-#include "sync/internal_api/sync_core.h"
-#include "sync/internal_api/sync_core_proxy_impl.h"
+#include "sync/internal_api/sync_context.h"
+#include "sync/internal_api/sync_context_proxy_impl.h"
#include "sync/internal_api/syncapi_internal.h"
#include "sync/internal_api/syncapi_server_connection_manager.h"
#include "sync/notifier/invalidation_util.h"
@@ -390,15 +390,15 @@ void SyncManagerImpl::Init(
model_type_registry_.reset(new ModelTypeRegistry(workers, directory()));
- sync_core_.reset(new SyncCore(model_type_registry_.get()));
+ sync_context_.reset(new SyncContext(model_type_registry_.get()));
- // Bind the SyncCore WeakPtr to this thread. This helps us crash earlier if
- // the pointer is misused in debug mode.
- base::WeakPtr<SyncCore> weak_core = sync_core_->AsWeakPtr();
+ // Bind the SyncContext WeakPtr to this thread. This helps us crash earlier
+ // if the pointer is misused in debug mode.
+ base::WeakPtr<SyncContext> weak_core = sync_context_->AsWeakPtr();
weak_core.get();
- sync_core_proxy_.reset(
- new SyncCoreProxyImpl(base::MessageLoopProxy::current(), weak_core));
+ sync_context_proxy_.reset(
+ new SyncContextProxyImpl(base::MessageLoopProxy::current(), weak_core));
// Build a SyncSessionContext and store the worker in it.
DVLOG(1) << "Sync is bringing up SyncSessionContext.";
@@ -1022,9 +1022,9 @@ UserShare* SyncManagerImpl::GetUserShare() {
return &share_;
}
-syncer::SyncCoreProxy* SyncManagerImpl::GetSyncCoreProxy() {
+syncer::SyncContextProxy* SyncManagerImpl::GetSyncContextProxy() {
DCHECK(initialized_);
- return sync_core_proxy_.get();
+ return sync_context_proxy_.get();
}
const std::string SyncManagerImpl::cache_guid() {
« no previous file with comments | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/sync_rollback_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698