summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_http_job.cc
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-08-26 17:24:42 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-27 00:26:20 +0000
commitc2e01e8fa07a71047e376b686c8c66842be604e7 (patch)
tree36c3dd4571dddfc40087595be41fffad4725dbeb /net/url_request/url_request_http_job.cc
parentd81e7d7e92f955cc80cc627682db05a24f994bf1 (diff)
downloadchromium_src-c2e01e8fa07a71047e376b686c8c66842be604e7.zip
chromium_src-c2e01e8fa07a71047e376b686c8c66842be604e7.tar.gz
chromium_src-c2e01e8fa07a71047e376b686c8c66842be604e7.tar.bz2
Remove implicit conversions from scoped_refptr to T* in net/url_request/
This patch was generated by running the rewrite_scoped_refptr clang tool on a Linux build. BUG=110610 Review URL: https://codereview.chromium.org/495093005 Cr-Commit-Position: refs/heads/master@{#292051}
Diffstat (limited to 'net/url_request/url_request_http_job.cc')
-rw-r--r--net/url_request/url_request_http_job.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index a870a2c..d6b35dc 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -446,9 +446,9 @@ void URLRequestHttpJob::StartTransactionInternal() {
base::Bind(&URLRequestHttpJob::NotifyBeforeSendProxyHeadersCallback,
base::Unretained(this)));
- if (!throttling_entry_ ||
- !throttling_entry_->ShouldRejectRequest(
- *request_, network_delegate())) {
+ if (!throttling_entry_.get() ||
+ !throttling_entry_->ShouldRejectRequest(*request_,
+ network_delegate())) {
rv = transaction_->Start(
&request_info_, start_callback_, request_->net_log());
start_time_ = base::TimeTicks::Now();
@@ -1306,7 +1306,7 @@ void URLRequestHttpJob::DoneReadingRedirectResponse() {
} else {
// Otherwise, |override_response_headers_| must be non-NULL and contain
// bogus headers indicating a redirect.
- DCHECK(override_response_headers_);
+ DCHECK(override_response_headers_.get());
DCHECK(override_response_headers_->IsRedirect(NULL));
transaction_->StopCaching();
}