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

Unified Diff: net/url_request/url_request.cc

Issue 2910473005: Deprecate NonThreadSafe in net/ in favor of SequenceChecker/ThreadChecker. (Closed)
Patch Set: rebase on r476634 Created 3 years, 7 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') | net/url_request/url_request_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 01c32b4f03302fd3b73f6e240f46bde0bda5cd30..690bc37fdf7ee3564644791223d481fe5778b4be 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -174,6 +174,7 @@ void URLRequest::Delegate::OnResponseStarted(URLRequest* request) {
// URLRequest
URLRequest::~URLRequest() {
+ DCHECK_CALLED_ON_VALID_THREAD(thread_checker_);
Cancel();
if (network_delegate_) {
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698