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

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

Issue 2339403004: [Sync] Add two more USS integration tests. (Closed)
Patch Set: 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/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 4177b2b942034312f60f78c9df10971faa321777..5d18a0cc1cf6bd9d6a873026b3afa3d4951e935c 100644
--- a/components/sync/engine_impl/worker_entity_tracker.cc
+++ b/components/sync/engine_impl/worker_entity_tracker.cc
@@ -125,11 +125,12 @@ void WorkerEntityTracker::ReceiveCommitResponse(CommitResponseData* ack) {
ClearPendingCommit();
}
-void WorkerEntityTracker::ReceiveUpdate(int64_t version) {
- if (version <= highest_gu_response_version_)
+void WorkerEntityTracker::ReceiveUpdate(const UpdateResponseData& update) {
+ if (update.response_version <= highest_gu_response_version_)
return;
- highest_gu_response_version_ = version;
+ highest_gu_response_version_ = update.response_version;
+ id_ = update.entity->id;
pavely 2016/09/16 16:11:08 Could you adjust comment for entities_ in model_ty
maxbogue 2016/09/16 17:39:43 Done and done.
// Got an applicable update newer than any pending updates. It must be safe
// to discard the old encrypted update, if there was one.
« no previous file with comments | « components/sync/engine_impl/worker_entity_tracker.h ('k') | components/sync/engine_impl/worker_entity_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698