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

Unified Diff: components/sync/driver/generic_change_processor.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/driver/backend_migrator.cc ('k') | components/sync/driver/sync_error_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/driver/generic_change_processor.cc
diff --git a/components/sync/driver/generic_change_processor.cc b/components/sync/driver/generic_change_processor.cc
index bb2d4bd5636a65796d8ed5e6086e383edb5bb30e..2cdb6d92173d839d117a1dcc6616a9f0247dcccc 100644
--- a/components/sync/driver/generic_change_processor.cc
+++ b/components/sync/driver/generic_change_processor.cc
@@ -693,8 +693,8 @@ void GenericChangeProcessor::UploadAllAttachmentsNotOnServer() {
void GenericChangeProcessor::NotifyLocalChangeObservers(
const syncable::Entry* current_entry,
const SyncChange& change) {
- FOR_EACH_OBSERVER(LocalChangeObserver, local_change_observers_,
- OnLocalChange(current_entry, change));
+ for (auto& observer : local_change_observers_)
+ observer.OnLocalChange(current_entry, change);
}
std::unique_ptr<AttachmentService>
« no previous file with comments | « components/sync/driver/backend_migrator.cc ('k') | components/sync/driver/sync_error_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698