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

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

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.h
diff --git a/components/sync/engine_impl/worker_entity_tracker.h b/components/sync/engine_impl/worker_entity_tracker.h
index 3b1bde1b0dba529015b35a8e6852b0b9959f91bd..a25c91f77b8793fcd6abde97b4a4ac55182e17ca 100644
--- a/components/sync/engine_impl/worker_entity_tracker.h
+++ b/components/sync/engine_impl/worker_entity_tracker.h
@@ -40,6 +40,9 @@ class WorkerEntityTracker {
// Returns true if this entity should be commited to the server.
bool HasPendingCommit() const;
+ // Returns true if pending commit contains deleted entity.
+ bool PendingCommitIsDeletion() const;
+
// Populates a sync_pb::SyncEntity for a commit.
void PopulateCommitProto(sync_pb::SyncEntity* commit_entity) const;
« no previous file with comments | « components/sync/engine_impl/model_type_worker_unittest.cc ('k') | components/sync/engine_impl/worker_entity_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698