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

Unified Diff: components/sync/model/model_type_sync_bridge.cc

Issue 2458013002: [Sync] Rename ModelTypeService to ModelTypeSyncBridge. (Closed)
Patch Set: s/SetBridgeError/ErrorOnNextCall 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: components/sync/model/model_type_sync_bridge.cc
diff --git a/components/sync/model/model_type_service.cc b/components/sync/model/model_type_sync_bridge.cc
similarity index 81%
rename from components/sync/model/model_type_service.cc
rename to components/sync/model/model_type_sync_bridge.cc
index 59de0c9b9e80e82593d80a0add911af6bb079ad0..b3b793e693d03fe85a8231766daadc67e5b9ba92 100644
--- a/components/sync/model/model_type_service.cc
+++ b/components/sync/model/model_type_sync_bridge.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/sync/model/model_type_service.h"
+#include "components/sync/model/model_type_sync_bridge.h"
#include <utility>
@@ -11,16 +11,16 @@
namespace syncer {
-ModelTypeService::ModelTypeService(
+ModelTypeSyncBridge::ModelTypeSyncBridge(
const ChangeProcessorFactory& change_processor_factory,
ModelType type)
: type_(type),
change_processor_factory_(change_processor_factory),
change_processor_(change_processor_factory_.Run(type_, this)) {}
-ModelTypeService::~ModelTypeService() {}
+ModelTypeSyncBridge::~ModelTypeSyncBridge() {}
-ConflictResolution ModelTypeService::ResolveConflict(
+ConflictResolution ModelTypeSyncBridge::ResolveConflict(
const EntityData& local_data,
const EntityData& remote_data) const {
if (remote_data.is_deleted()) {
@@ -30,13 +30,13 @@ ConflictResolution ModelTypeService::ResolveConflict(
return ConflictResolution::UseRemote();
}
-void ModelTypeService::OnSyncStarting(
+void ModelTypeSyncBridge::OnSyncStarting(
std::unique_ptr<DataTypeErrorHandler> error_handler,
const ModelTypeChangeProcessor::StartCallback& start_callback) {
change_processor_->OnSyncStarting(std::move(error_handler), start_callback);
}
-void ModelTypeService::DisableSync() {
+void ModelTypeSyncBridge::DisableSync() {
DCHECK(change_processor_);
change_processor_->DisableSync();
change_processor_ = change_processor_factory_.Run(type_, this);
@@ -48,7 +48,7 @@ void ModelTypeService::DisableSync() {
base::MakeUnique<MetadataBatch>());
}
-ModelTypeChangeProcessor* ModelTypeService::change_processor() const {
+ModelTypeChangeProcessor* ModelTypeSyncBridge::change_processor() const {
return change_processor_.get();
}
« no previous file with comments | « components/sync/model/model_type_sync_bridge.h ('k') | components/sync/model/model_type_sync_bridge_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698