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

Unified Diff: net/url_request/url_request_context_getter.cc

Issue 2423713002: Remove usage of FOR_EACH_OBSERVER macro in net (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 | « net/ssl/ssl_config_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context_getter.cc
diff --git a/net/url_request/url_request_context_getter.cc b/net/url_request/url_request_context_getter.cc
index 022aa0f958c3c9f7fe520101996c0d8194915444..0bad74812804739ecd53fae8180316ed33213818 100644
--- a/net/url_request/url_request_context_getter.cc
+++ b/net/url_request/url_request_context_getter.cc
@@ -57,8 +57,8 @@ void URLRequestContextGetter::NotifyContextShuttingDown() {
// Once shutdown starts, this must always return NULL.
DCHECK(!GetURLRequestContext());
- FOR_EACH_OBSERVER(URLRequestContextGetterObserver, observer_list_,
- OnContextShuttingDown());
+ for (auto& observer : observer_list_)
+ observer.OnContextShuttingDown();
}
TrivialURLRequestContextGetter::TrivialURLRequestContextGetter(
« no previous file with comments | « net/ssl/ssl_config_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698