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

Unified Diff: net/test/url_request/url_request_failed_job.cc

Issue 2676033002: Give URLRequestJob::GetResponseCode a better default implementation. (Closed)
Patch Set: Add headers Created 3 years, 10 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/test/url_request/url_request_failed_job.h ('k') | net/test/url_request/url_request_hanging_read_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/url_request/url_request_failed_job.cc
diff --git a/net/test/url_request/url_request_failed_job.cc b/net/test/url_request/url_request_failed_job.cc
index 1de2910eb3fb32b549835ca120ae8e09f9e32247..d87e5d30f19159b9a884c104ac7b3a1c90981be8 100644
--- a/net/test/url_request/url_request_failed_job.cc
+++ b/net/test/url_request/url_request_failed_job.cc
@@ -114,13 +114,6 @@ int URLRequestFailedJob::ReadRawData(IOBuffer* buf, int buf_size) {
return ERR_IO_PENDING;
}
-int URLRequestFailedJob::GetResponseCode() const {
- // If we have headers, get the response code from them.
- if (response_info_.headers)
- return response_info_.headers->response_code();
- return URLRequestJob::GetResponseCode();
-}
-
void URLRequestFailedJob::GetResponseInfo(HttpResponseInfo* info) {
*info = response_info_;
}
« no previous file with comments | « net/test/url_request/url_request_failed_job.h ('k') | net/test/url_request/url_request_hanging_read_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698