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

Unified Diff: net/test/url_request/url_request_hanging_read_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
Index: net/test/url_request/url_request_hanging_read_job.cc
diff --git a/net/test/url_request/url_request_hanging_read_job.cc b/net/test/url_request/url_request_hanging_read_job.cc
index 5223b297b4502e95ebdbc4c1bf132cf837b8b75a..5e36dc11e5cdf28df44d41281c5c10f617c3230d 100644
--- a/net/test/url_request/url_request_hanging_read_job.cc
+++ b/net/test/url_request/url_request_hanging_read_job.cc
@@ -65,12 +65,6 @@ int URLRequestHangingReadJob::ReadRawData(IOBuffer* buf, int buf_size) {
return ERR_IO_PENDING;
}
-int URLRequestHangingReadJob::GetResponseCode() const {
- HttpResponseInfo info;
- GetResponseInfoConst(&info);
- return info.headers->response_code();
-}
-
// Public virtual version.
void URLRequestHangingReadJob::GetResponseInfo(HttpResponseInfo* info) {
// Forward to private const version.
« no previous file with comments | « net/test/url_request/url_request_hanging_read_job.h ('k') | net/test/url_request/url_request_mock_data_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698