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

Unified Diff: components/sync/test/fake_server/fake_server.cc

Issue 2424673002: Remove usage of FOR_EACH_OBSERVER macro in components/sync (Closed)
Patch Set: blank line before return Created 4 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
« no previous file with comments | « components/sync/js/sync_js_controller.cc ('k') | components/sync/test/fake_sync_encryption_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/test/fake_server/fake_server.cc
diff --git a/components/sync/test/fake_server/fake_server.cc b/components/sync/test/fake_server/fake_server.cc
index a24a22095eaf10432d0ddea1be71cfa0b78a77b8..66b720a6b06c40e359d76a7ac4c1d0f7553e8f3f 100644
--- a/components/sync/test/fake_server/fake_server.cc
+++ b/components/sync/test/fake_server/fake_server.cc
@@ -509,8 +509,9 @@ bool FakeServer::HandleCommitRequest(const sync_pb::CommitMessage& commit,
committed_model_types.Put(iter->second->model_type());
}
- FOR_EACH_OBSERVER(Observer, observers_,
- OnCommit(invalidator_client_id, committed_model_types));
+ for (auto& observer : observers_)
+ observer.OnCommit(invalidator_client_id, committed_model_types);
+
return true;
}
« no previous file with comments | « components/sync/js/sync_js_controller.cc ('k') | components/sync/test/fake_sync_encryption_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698