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

Unified Diff: chrome/browser/safe_browsing/ui_manager.cc

Issue 2439493002: Reduce usage of FOR_EACH_OBSERVER macro in chrome/browser (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/prerender/prerender_contents.cc ('k') | chrome/browser/search/instant_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/ui_manager.cc
diff --git a/chrome/browser/safe_browsing/ui_manager.cc b/chrome/browser/safe_browsing/ui_manager.cc
index a68ee631d3762bd653bcc9199972c1ead70e125b..aa67cef73c9870300176c2a3bc191909b7a68d5b 100644
--- a/chrome/browser/safe_browsing/ui_manager.cc
+++ b/chrome/browser/safe_browsing/ui_manager.cc
@@ -250,7 +250,8 @@ void SafeBrowsingUIManager::DisplayBlockingPage(
}
if (resource.threat_type != SB_THREAT_TYPE_SAFE) {
- FOR_EACH_OBSERVER(Observer, observer_list_, OnSafeBrowsingHit(resource));
+ for (Observer& observer : observer_list_)
+ observer.OnSafeBrowsingHit(resource);
}
AddToWhitelistUrlSet(resource, true /* A decision is now pending */);
SafeBrowsingBlockingPage::ShowBlockingPage(this, resource);
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | chrome/browser/search/instant_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698