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

Unified Diff: net/url_request/url_request_context.h

Issue 379293002: Add AssertNoURLRequests() to URLRequestContext subclass destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
Index: net/url_request/url_request_context.h
diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h
index 4242d72e6d9fed313c325313996f0deb1841d5e8..fe4213a437d85c28eda0037319a928bf5b9a0d41 100644
--- a/net/url_request/url_request_context.h
+++ b/net/url_request/url_request_context.h
@@ -199,6 +199,9 @@ class NET_EXPORT URLRequestContext
return url_requests_.get();
}
+ // CHECKs that no URLRequests using this context remain. Subclasses should
+ // additionally call AssertNoURLRequests() within their own destructor,
+ // prior to implicit destruction of subclass-owned state.
sky 2014/07/10 19:37:32 How come the call to this in the destructor isn't
Ryan Sleevi 2014/07/10 19:39:36 The issue is running into crashes in the derived-c
void AssertNoURLRequests() const;
// Get the underlying |HttpUserAgentSettings| implementation that provides

Powered by Google App Engine
This is Rietveld 408576698