Index: net/url_request/url_request_ftp_job.cc |
diff --git a/net/url_request/url_request_ftp_job.cc b/net/url_request/url_request_ftp_job.cc |
index 4f677efc63ff97c476655bb0bb9fd50728d38bbf..c92ae6ccba74d193c6debb6ca42b629bf7231503 100644 |
--- a/net/url_request/url_request_ftp_job.cc |
+++ b/net/url_request/url_request_ftp_job.cc |
@@ -257,7 +257,7 @@ void URLRequestFtpJob::OnReadCompleted(int result) { |
} |
void URLRequestFtpJob::RestartTransactionWithAuth() { |
- DCHECK(auth_data_ && auth_data_->state == AUTH_STATE_HAVE_AUTH); |
+ DCHECK(auth_data_.get() && auth_data_->state == AUTH_STATE_HAVE_AUTH); |
// No matter what, we want to report our status as IO pending since we will |
// be notifying our consumer asynchronously via OnStartCompleted. |
@@ -292,7 +292,7 @@ LoadState URLRequestFtpJob::GetLoadState() const { |
} |
bool URLRequestFtpJob::NeedsAuth() { |
- return auth_data_ && auth_data_->state == AUTH_STATE_NEED_AUTH; |
+ return auth_data_.get() && auth_data_->state == AUTH_STATE_NEED_AUTH; |
} |
void URLRequestFtpJob::GetAuthChallengeInfo( |
@@ -379,7 +379,7 @@ bool URLRequestFtpJob::ReadRawData(IOBuffer* buf, |
void URLRequestFtpJob::HandleAuthNeededResponse() { |
GURL origin = request_->url().GetOrigin(); |
- if (auth_data_) { |
+ if (auth_data_.get()) { |
if (auth_data_->state == AUTH_STATE_CANCELED) { |
NotifyHeadersComplete(); |
return; |