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

Unified Diff: components/sync/js/sync_js_controller.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/engine_impl/sync_scheduler_impl.cc ('k') | components/sync/test/fake_server/fake_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/js/sync_js_controller.cc
diff --git a/components/sync/js/sync_js_controller.cc b/components/sync/js/sync_js_controller.cc
index 087d20eaa311fa450262671c63acbace2260ed3f..1d598f63ff9d94614f9645e936ba619ad3b3f4d3 100644
--- a/components/sync/js/sync_js_controller.cc
+++ b/components/sync/js/sync_js_controller.cc
@@ -34,8 +34,8 @@ void SyncJsController::AttachJsBackend(
void SyncJsController::HandleJsEvent(const std::string& name,
const JsEventDetails& details) {
- FOR_EACH_OBSERVER(JsEventHandler, js_event_handlers_,
- HandleJsEvent(name, details));
+ for (auto& observer : js_event_handlers_)
+ observer.HandleJsEvent(name, details);
}
void SyncJsController::UpdateBackendEventHandler() {
« no previous file with comments | « components/sync/engine_impl/sync_scheduler_impl.cc ('k') | components/sync/test/fake_server/fake_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698