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

Unified Diff: components/sync/engine_impl/model_type_worker.cc

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Fix tools and iOS. Created 4 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: components/sync/engine_impl/model_type_worker.cc
diff --git a/components/sync/engine_impl/model_type_worker.cc b/components/sync/engine_impl/model_type_worker.cc
index 56604e03ab4a9154b18eb14f6c14210da6d92b96..8c6e39673a9ece475a090e313cb62becbcb1fcae 100644
--- a/components/sync/engine_impl/model_type_worker.cc
+++ b/components/sync/engine_impl/model_type_worker.cc
@@ -24,13 +24,7 @@
#include "components/sync/engine_impl/worker_entity_tracker.h"
#include "components/sync/syncable/syncable_util.h"
-namespace syncer_v2 {
-
-using syncer::CommitContribution;
-using syncer::Cryptographer;
-using syncer::ModelType;
-using syncer::NudgeHandler;
-using syncer::SyncerError;
+namespace syncer {
ModelTypeWorker::ModelTypeWorker(
ModelType type,
@@ -97,7 +91,7 @@ SyncerError ModelTypeWorker::ProcessGetUpdatesResponse(
const sync_pb::DataTypeProgressMarker& progress_marker,
const sync_pb::DataTypeContext& mutated_context,
const SyncEntityList& applicable_updates,
- syncer::StatusController* status) {
+ StatusController* status) {
DCHECK(thread_checker_.CalledOnValidThread());
// TODO(rlarocque): Handle data type context conflicts.
@@ -121,8 +115,8 @@ SyncerError ModelTypeWorker::ProcessGetUpdatesResponse(
EntityData data;
data.id = update_entity->id_string();
data.client_tag_hash = client_tag_hash;
- data.creation_time = syncer::ProtoTimeToTime(update_entity->ctime());
- data.modification_time = syncer::ProtoTimeToTime(update_entity->mtime());
+ data.creation_time = ProtoTimeToTime(update_entity->ctime());
+ data.modification_time = ProtoTimeToTime(update_entity->mtime());
data.non_unique_name = update_entity->name();
UpdateResponseData response_data;
@@ -160,10 +154,10 @@ SyncerError ModelTypeWorker::ProcessGetUpdatesResponse(
}
}
- return syncer::SYNCER_OK;
+ return SYNCER_OK;
}
-void ModelTypeWorker::ApplyUpdates(syncer::StatusController* status) {
+void ModelTypeWorker::ApplyUpdates(StatusController* status) {
DCHECK(thread_checker_.CalledOnValidThread());
// This should only ever be called after one PassiveApplyUpdates.
DCHECK(data_type_state_.initial_sync_done());
@@ -171,7 +165,7 @@ void ModelTypeWorker::ApplyUpdates(syncer::StatusController* status) {
ApplyPendingUpdates();
}
-void ModelTypeWorker::PassiveApplyUpdates(syncer::StatusController* status) {
+void ModelTypeWorker::PassiveApplyUpdates(StatusController* status) {
DCHECK(thread_checker_.CalledOnValidThread());
// This should only be called at the end of the very first download cycle.
DCHECK(!data_type_state_.initial_sync_done());
@@ -199,7 +193,7 @@ void ModelTypeWorker::EnqueueForCommit(const CommitRequestDataList& list) {
for (const CommitRequestData& commit : list) {
const EntityData& data = commit.entity.value();
if (!data.is_deleted()) {
- DCHECK_EQ(type_, syncer::GetModelTypeFromSpecifics(data.specifics));
+ DCHECK_EQ(type_, GetModelTypeFromSpecifics(data.specifics));
}
GetOrCreateEntityTracker(data)->RequestCommit(commit);
}
@@ -420,4 +414,4 @@ WorkerEntityTracker* ModelTypeWorker::GetOrCreateEntityTracker(
return entity ? entity : CreateEntityTracker(data);
}
-} // namespace syncer_v2
+} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698