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

Unified Diff: components/sync/driver/backend_migrator.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
Index: components/sync/driver/backend_migrator.cc
diff --git a/components/sync/driver/backend_migrator.cc b/components/sync/driver/backend_migrator.cc
index 4a2d01942942986242bba056fb6ca84728482e4a..7edbbaf9bf03fbf22f33c8b250b71787ad049112 100644
--- a/components/sync/driver/backend_migrator.cc
+++ b/components/sync/driver/backend_migrator.cc
@@ -81,8 +81,8 @@ void BackendMigrator::RemoveMigrationObserver(MigrationObserver* observer) {
void BackendMigrator::ChangeState(State new_state) {
state_ = new_state;
- FOR_EACH_OBSERVER(MigrationObserver, migration_observers_,
- OnMigrationStateChange());
+ for (auto& observer : migration_observers_)
+ observer.OnMigrationStateChange();
}
bool BackendMigrator::TryStart() {
« no previous file with comments | « components/sync/device_info/device_info_sync_service.cc ('k') | components/sync/driver/generic_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698