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

Unified Diff: components/drive/drive_app_registry.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/chromeos/file_system.cc ('k') | components/drive/drive_notification_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/drive_app_registry.cc
diff --git a/components/drive/drive_app_registry.cc b/components/drive/drive_app_registry.cc
index d0861b0b85fc6c0a30a68aeea845f9608f9b37b3..f6cbc502cdf487607dc11f8af78947e6d531b176 100644
--- a/components/drive/drive_app_registry.cc
+++ b/components/drive/drive_app_registry.cc
@@ -189,9 +189,8 @@ void DriveAppRegistry::UpdateFromAppList(const google_apis::AppList& app_list) {
AddAppSelectorList(app.secondary_file_extensions(), id, &extension_map_);
}
- FOR_EACH_OBSERVER(DriveAppRegistryObserver,
- observers_,
- OnDriveAppRegistryUpdated());
+ for (auto& observer : observers_)
+ observer.OnDriveAppRegistryUpdated();
}
void DriveAppRegistry::AddObserver(DriveAppRegistryObserver* observer) {
« no previous file with comments | « components/drive/chromeos/file_system.cc ('k') | components/drive/drive_notification_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698