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

Unified Diff: components/drive/service/fake_drive_service.cc

Issue 2421083002: Replace FOR_EACH_OBSERVER in components/drive with range-based for (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 | « components/drive/service/drive_api_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/service/fake_drive_service.cc
diff --git a/components/drive/service/fake_drive_service.cc b/components/drive/service/fake_drive_service.cc
index ad0d1f66efdfc479dc6e6756ffad86cf6ffa7f74..60f84c56e35b7a4a4a0d0bc0ade5a0a4bc63169d 100644
--- a/components/drive/service/fake_drive_service.cc
+++ b/components/drive/service/fake_drive_service.cc
@@ -1793,7 +1793,8 @@ FakeDriveService::StartBatchRequest() {
}
void FakeDriveService::NotifyObservers() {
- FOR_EACH_OBSERVER(ChangeObserver, change_observers_, OnNewChangeAvailable());
+ for (auto& observer : change_observers_)
+ observer.OnNewChangeAvailable();
}
} // namespace drive
« no previous file with comments | « components/drive/service/drive_api_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698