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

Unified Diff: net/url_request/url_request.cc

Issue 495093005: Remove implicit conversions from scoped_refptr to T* in net/url_request/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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_filter_unittest.cc » ('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 666f2e77e87d9fc8e443f8a0511394bbfd863f7c..f952088eeca1863f06aa7120560ea8643b677aa9 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -512,7 +512,7 @@ int URLRequest::GetResponseCode() const {
void URLRequest::SetLoadFlags(int flags) {
if ((load_flags_ & LOAD_IGNORE_LIMITS) != (flags & LOAD_IGNORE_LIMITS)) {
- DCHECK(!job_);
+ DCHECK(!job_.get());
DCHECK(flags & LOAD_IGNORE_LIMITS);
DCHECK_EQ(priority_, MAXIMUM_PRIORITY);
}
@@ -839,7 +839,7 @@ void URLRequest::NotifyBeforeNetworkStart(bool* defer) {
}
void URLRequest::ResumeNetworkStart() {
- DCHECK(job_);
+ DCHECK(job_.get());
DCHECK(notified_before_network_start_);
OnCallToDelegateComplete();
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698