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

Unified Diff: chrome/browser/sync_file_system/local/local_file_sync_context.cc

Issue 2425553002: Remove FOR_EACH_OBSERVER macro usage in chrome/browser/sync_file_system (Closed)
Patch Set: 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: chrome/browser/sync_file_system/local/local_file_sync_context.cc
diff --git a/chrome/browser/sync_file_system/local/local_file_sync_context.cc b/chrome/browser/sync_file_system/local/local_file_sync_context.cc
index ed2309ae5086a5aa06a1bd3b5b656e0f3d2d4d2f..90dec5284e7267ee71ef6c8dfeb93526ac351348 100644
--- a/chrome/browser/sync_file_system/local/local_file_sync_context.cc
+++ b/chrome/browser/sync_file_system/local/local_file_sync_context.cc
@@ -605,8 +605,8 @@ void LocalFileSyncContext::NotifyAvailableChangesOnIOThread() {
void LocalFileSyncContext::NotifyAvailableChanges(
const std::set<GURL>& origins,
const std::vector<base::Closure>& callbacks) {
- FOR_EACH_OBSERVER(LocalOriginChangeObserver, origin_change_observers_,
- OnChangesAvailableInOrigins(origins));
+ for (auto& observer : origin_change_observers_)
+ observer.OnChangesAvailableInOrigins(origins);
for (const auto& callback : callbacks)
callback.Run();
}

Powered by Google App Engine
This is Rietveld 408576698