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

Unified Diff: content/browser/appcache/appcache_group.cc

Issue 2422923002: Reduce usage of FOR_EACH_OBSERVER macro in content/browser (Closed)
Patch Set: skip cases in 2418143004 and 2418373002 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 | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/appcache/appcache_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/appcache_group.cc
diff --git a/content/browser/appcache/appcache_group.cc b/content/browser/appcache/appcache_group.cc
index 0e8f3c496da0bf3ca4c84817a234cb23ef34b2ec..573983eba6e803f29f8c7b168d605e8c03453bba 100644
--- a/content/browser/appcache/appcache_group.cc
+++ b/content/browser/appcache/appcache_group.cc
@@ -260,7 +260,8 @@ void AppCacheGroup::SetUpdateAppCacheStatus(UpdateAppCacheStatus status) {
// deletion by adding an extra ref in this scope (but only if we're not
// in our destructor).
scoped_refptr<AppCacheGroup> protect(is_in_dtor_ ? NULL : this);
- FOR_EACH_OBSERVER(UpdateObserver, observers_, OnUpdateComplete(this));
+ for (auto& observer : observers_)
+ observer.OnUpdateComplete(this);
if (!queued_updates_.empty())
ScheduleUpdateRestart(kUpdateRestartDelayMs);
}
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/appcache/appcache_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698