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

Unified Diff: net/url_request/url_request_context.cc

Issue 10914134: Log the source when a URLFetcher leak is detected (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « no previous file | 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.cc
diff --git a/net/url_request/url_request_context.cc b/net/url_request/url_request_context.cc
index e4f7f31ba152b8b2a07192ead500c4ebb5f1c99b..5b7af631d31ed7a179417a671d758aad4835e5ed 100644
--- a/net/url_request/url_request_context.cc
+++ b/net/url_request/url_request_context.cc
@@ -96,7 +96,8 @@ void URLRequestContext::AssertNoURLRequests() const {
base::debug::Alias(&has_delegate);
base::debug::Alias(&load_flags);
base::debug::Alias(&stack_trace);
- CHECK(false);
+ CHECK(false) << "Leaked " << num_requests << " URLRequest(s). First URL: "
+ << request->url().spec().c_str() << ".";
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698