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

Unified Diff: sync/test/engine/mock_connection_manager.cc

Issue 38803003: sync: Implement per-type update processing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix integration tests Created 7 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: sync/test/engine/mock_connection_manager.cc
diff --git a/sync/test/engine/mock_connection_manager.cc b/sync/test/engine/mock_connection_manager.cc
index 2290fea35cf2f281853637a0bb706e932b451ae0..624e02218822a9c2fc9509f10280222fbabb5915 100644
--- a/sync/test/engine/mock_connection_manager.cc
+++ b/sync/test/engine/mock_connection_manager.cc
@@ -533,12 +533,10 @@ void MockConnectionManager::ProcessGetUpdates(
std::string token = response->get_updates().new_progress_marker(0).token();
response->mutable_get_updates()->clear_new_progress_marker();
for (int i = 0; i < gu.from_progress_marker_size(); ++i) {
- if (gu.from_progress_marker(i).token() != token) {
- sync_pb::DataTypeProgressMarker* new_marker =
- response->mutable_get_updates()->add_new_progress_marker();
- new_marker->set_data_type_id(gu.from_progress_marker(i).data_type_id());
- new_marker->set_token(token);
- }
+ sync_pb::DataTypeProgressMarker* new_marker =
Nicolas Zea 2013/10/25 21:04:41 what is this change for?
rlarocque 2013/10/25 22:29:47 This uses a little-known feature in the sync proto
+ response->mutable_get_updates()->add_new_progress_marker();
+ new_marker->set_data_type_id(gu.from_progress_marker(i).data_type_id());
+ new_marker->set_token(token);
}
// Fill the keystore key if requested.

Powered by Google App Engine
This is Rietveld 408576698