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

Unified Diff: net/url_request/url_request_context.cc

Issue 1523433002: Remove support for a URLRequest having a NULL Delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge, remove if in file_writer_delegate Created 5 years 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.cc ('k') | net/url_request/url_request_job.cc » ('j') | 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 b83cf023be39cc57c7d9aaa47cc81cf6aafc32dc..e9ab617dd583d881932a7b80f17efc0a80ba9d6e 100644
--- a/net/url_request/url_request_context.cc
+++ b/net/url_request/url_request_context.cc
@@ -94,14 +94,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::StackTrace stack_trace(NULL, 0);
if (request->stack_trace())
stack_trace = *request->stack_trace();
base::debug::Alias(url_buf);
base::debug::Alias(&num_requests);
- base::debug::Alias(&has_delegate);
base::debug::Alias(&load_flags);
base::debug::Alias(&stack_trace);
CHECK(false) << "Leaked " << num_requests << " URLRequest(s). First URL: "
« no previous file with comments | « net/url_request/url_request.cc ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698