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

Unified Diff: chrome/browser/sync_file_system/drive_backend/fake_sync_worker.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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/sync_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/fake_sync_worker.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/fake_sync_worker.cc b/chrome/browser/sync_file_system/drive_backend/fake_sync_worker.cc
index e8f5043a7ba8713cce8aaec593d2a6b157c26402..123b6d0c3c3ae3682d6eccb6f86271b321bb4e35 100644
--- a/chrome/browser/sync_file_system/drive_backend/fake_sync_worker.cc
+++ b/chrome/browser/sync_file_system/drive_backend/fake_sync_worker.cc
@@ -132,10 +132,8 @@ void FakeSyncWorker::SetSyncEnabled(bool enabled) {
void FakeSyncWorker::PromoteDemotedChanges(const base::Closure& callback) {
DCHECK(sequence_checker_.CalledOnValidSequence());
- FOR_EACH_OBSERVER(
- Observer,
- observers_,
- OnPendingFileListUpdated(10));
+ for (auto& observer : observers_)
+ observer.OnPendingFileListUpdated(10);
callback.Run();
}
@@ -172,9 +170,8 @@ void FakeSyncWorker::UpdateServiceState(RemoteServiceState state,
const std::string& description) {
DCHECK(sequence_checker_.CalledOnValidSequence());
- FOR_EACH_OBSERVER(
- Observer, observers_,
- UpdateServiceState(state, description));
+ for (auto& observer : observers_)
+ observer.UpdateServiceState(state, description);
}
} // namespace drive_backend
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/sync_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698