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

Unified Diff: net/url_request/url_request_test_job.cc

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 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_job.cc ('k') | net/url_request/url_request_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_test_job.cc
diff --git a/net/url_request/url_request_test_job.cc b/net/url_request/url_request_test_job.cc
index c456ae5dc4d0800e4534da464144bb16fd82a30a..592f4488cd9ae6c4e350057b0be7018a5b9cdde8 100644
--- a/net/url_request/url_request_test_job.cc
+++ b/net/url_request/url_request_test_job.cc
@@ -135,7 +135,7 @@ URLRequestTestJob::~URLRequestTestJob() {
bool URLRequestTestJob::GetMimeType(std::string* mime_type) const {
DCHECK(mime_type);
- if (!response_headers_)
+ if (!response_headers_.get())
return false;
return response_headers_->GetMimeType(mime_type);
}
@@ -153,7 +153,7 @@ void URLRequestTestJob::Start() {
}
void URLRequestTestJob::StartAsync() {
- if (!response_headers_) {
+ if (!response_headers_.get()) {
response_headers_ = new HttpResponseHeaders(test_headers());
if (request_->url().spec() == test_url_1().spec()) {
response_data_ = test_data_1();
@@ -209,7 +209,7 @@ bool URLRequestTestJob::ReadRawData(IOBuffer* buf, int buf_size,
}
void URLRequestTestJob::GetResponseInfo(HttpResponseInfo* info) {
- if (response_headers_)
+ if (response_headers_.get())
info->headers = response_headers_;
}
@@ -225,14 +225,14 @@ void URLRequestTestJob::GetLoadTimingInfo(
}
int URLRequestTestJob::GetResponseCode() const {
- if (response_headers_)
+ if (response_headers_.get())
return response_headers_->response_code();
return -1;
}
bool URLRequestTestJob::IsRedirectResponse(GURL* location,
int* http_status_code) {
- if (!response_headers_)
+ if (!response_headers_.get())
return false;
std::string value;
« no previous file with comments | « net/url_request/url_request_job.cc ('k') | net/url_request/url_request_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698