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

Unified Diff: storage/browser/quota/special_storage_policy.cc

Issue 2422843002: Remove usage of FOR_EACH_OBSERVER macro in storage (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 | « storage/browser/database/database_tracker.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/quota/special_storage_policy.cc
diff --git a/storage/browser/quota/special_storage_policy.cc b/storage/browser/quota/special_storage_policy.cc
index 6e774505df51f1f7f49a0a1614991e8e71da857b..40125ac126eabd72b70d2dc855076f8c77db3a7e 100644
--- a/storage/browser/quota/special_storage_policy.cc
+++ b/storage/browser/quota/special_storage_policy.cc
@@ -22,17 +22,20 @@ void SpecialStoragePolicy::RemoveObserver(Observer* observer) {
void SpecialStoragePolicy::NotifyGranted(const GURL& origin, int change_flags) {
scoped_refptr<SpecialStoragePolicy> protect(this);
- FOR_EACH_OBSERVER(Observer, observers_, OnGranted(origin, change_flags));
+ for (auto& observer : observers_)
+ observer.OnGranted(origin, change_flags);
}
void SpecialStoragePolicy::NotifyRevoked(const GURL& origin, int change_flags) {
scoped_refptr<SpecialStoragePolicy> protect(this);
- FOR_EACH_OBSERVER(Observer, observers_, OnRevoked(origin, change_flags));
+ for (auto& observer : observers_)
+ observer.OnRevoked(origin, change_flags);
}
void SpecialStoragePolicy::NotifyCleared() {
scoped_refptr<SpecialStoragePolicy> protect(this);
- FOR_EACH_OBSERVER(Observer, observers_, OnCleared());
+ for (auto& observer : observers_)
+ observer.OnCleared();
}
} // namespace storage
« no previous file with comments | « storage/browser/database/database_tracker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698