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

Unified Diff: components/drive/chromeos/directory_loader.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/change_list_loader.cc ('k') | components/drive/chromeos/file_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/chromeos/directory_loader.cc
diff --git a/components/drive/chromeos/directory_loader.cc b/components/drive/chromeos/directory_loader.cc
index 224b9f19a8219c86e80ee5db7a1941d137c9fee4..b90bde4dcffa3b0b280f2fe576f9344fcfe6b6c5 100644
--- a/components/drive/chromeos/directory_loader.cc
+++ b/components/drive/chromeos/directory_loader.cc
@@ -561,9 +561,8 @@ void DirectoryLoader::LoadDirectoryFromServerAfterUpdateChangestamp(
// Also notify the observers.
if (error == FILE_ERROR_OK && !directory_path->empty()) {
- FOR_EACH_OBSERVER(ChangeListLoaderObserver,
- observers_,
- OnDirectoryReloaded(*directory_path));
+ for (auto& observer : observers_)
+ observer.OnDirectoryReloaded(*directory_path);
}
}
« no previous file with comments | « components/drive/chromeos/change_list_loader.cc ('k') | components/drive/chromeos/file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698