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

Unified Diff: chrome/browser/ui/app_list/test/fake_profile_store.cc

Issue 2424563002: Replace FOR_EACH_OBSERVER in c/b/ui/app_list 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 | « chrome/browser/ui/app_list/start_page_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/test/fake_profile_store.cc
diff --git a/chrome/browser/ui/app_list/test/fake_profile_store.cc b/chrome/browser/ui/app_list/test/fake_profile_store.cc
index 1bda66adff93b9d71f0d187b91aff383821293fb..83be0ecfaed4155e6b7ba173775063a11074bc23 100644
--- a/chrome/browser/ui/app_list/test/fake_profile_store.cc
+++ b/chrome/browser/ui/app_list/test/fake_profile_store.cc
@@ -28,11 +28,11 @@ void FakeProfileStore::LoadProfile(Profile* profile) {
void FakeProfileStore::RemoveProfile(Profile* profile) {
base::FilePath path(profile->GetPath());
- FOR_EACH_OBSERVER(ProfileAttributesStorage::Observer, observer_list_,
- OnProfileWillBeRemoved(path));
+ for (auto& observer : observer_list_)
+ observer.OnProfileWillBeRemoved(path);
loaded_profiles_.erase(path);
- FOR_EACH_OBSERVER(ProfileAttributesStorage::Observer, observer_list_,
- OnProfileWasRemoved(path, base::string16()));
+ for (auto& observer : observer_list_)
+ observer.OnProfileWasRemoved(path, base::string16());
}
void FakeProfileStore::AddProfileObserver(
« no previous file with comments | « chrome/browser/ui/app_list/start_page_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698