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

Unified Diff: net/url_request/url_request_redirect_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/url_request/url_request_redirect_job.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_redirect_job.cc
diff --git a/net/url_request/url_request_redirect_job.cc b/net/url_request/url_request_redirect_job.cc
index e13dec0759bad6456fe3be86985470ee93e9604b..3ca1ef377adfdeeb683820120201bdd1ffee8d7a 100644
--- a/net/url_request/url_request_redirect_job.cc
+++ b/net/url_request/url_request_redirect_job.cc
@@ -80,13 +80,6 @@ bool URLRequestRedirectJob::CopyFragmentOnRedirect(const GURL& location) const {
return false;
}
-int URLRequestRedirectJob::GetResponseCode() const {
- // Should only be called after the URLRequest has been notified there's header
- // information.
- DCHECK(fake_headers_.get());
- return response_code_;
-}
-
void URLRequestRedirectJob::StartAsync() {
DCHECK(request_);
DCHECK(request_->status().is_success());
« no previous file with comments | « net/url_request/url_request_redirect_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698