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

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

Issue 2611123005: [Sync] ModelTypeWorker should delete tracker for entity deleted on the server (Closed)
Patch Set: Address comment Created 3 years, 11 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/worker_entity_tracker.cc
diff --git a/components/sync/engine_impl/worker_entity_tracker.cc b/components/sync/engine_impl/worker_entity_tracker.cc
index 8632e291579bc76960c53f2c65d1817a947b45f0..67f2aa945f044b7822717188aa63a49eca504edd 100644
--- a/components/sync/engine_impl/worker_entity_tracker.cc
+++ b/components/sync/engine_impl/worker_entity_tracker.cc
@@ -25,6 +25,11 @@ bool WorkerEntityTracker::HasPendingCommit() const {
return !!pending_commit_;
}
+bool WorkerEntityTracker::PendingCommitIsDeletion() const {
+ DCHECK(pending_commit_);
+ return pending_commit_->entity.value().is_deleted();
+}
+
void WorkerEntityTracker::PopulateCommitProto(
sync_pb::SyncEntity* commit_entity) const {
DCHECK(HasPendingCommit());
« no previous file with comments | « components/sync/engine_impl/worker_entity_tracker.h ('k') | components/sync/test/engine/mock_model_type_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698