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

Unified Diff: net/url_request/url_request_context.cc

Issue 10378005: Add more variables to the URLRequest leak assertion crash dumps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/url_request/url_request.h ('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.cc
diff --git a/net/url_request/url_request_context.cc b/net/url_request/url_request_context.cc
index 1076f001275f6d4382fb42820536c06179683737..08cf95a143bceefdbe19b15445e31ed433104867 100644
--- a/net/url_request/url_request_context.cc
+++ b/net/url_request/url_request_context.cc
@@ -75,8 +75,12 @@ void URLRequestContext::AssertNoURLRequests() const {
char url_buf[128];
const URLRequest* request = *url_requests_->begin();
base::strlcpy(url_buf, request->url().spec().c_str(), arraysize(url_buf));
+ bool has_delegate = request->has_delegate();
+ int load_flags = request->load_flags();
base::debug::Alias(url_buf);
base::debug::Alias(&num_requests);
+ base::debug::Alias(&has_delegate);
+ base::debug::Alias(&load_flags);
CHECK(false);
}
}
« no previous file with comments | « net/url_request/url_request.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698