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

Unified Diff: content/test/net/url_request_mock_http_job.cc

Issue 10020051: Open a login tab on captive portal detection on SSL loads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update comments Created 8 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
Index: content/test/net/url_request_mock_http_job.cc
===================================================================
--- content/test/net/url_request_mock_http_job.cc (revision 139100)
+++ content/test/net/url_request_mock_http_job.cc (working copy)
@@ -120,6 +120,15 @@
return info.headers && info.headers->GetMimeType(mime_type);
}
+int URLRequestMockHTTPJob::GetResponseCode() const {
+ net::HttpResponseInfo info;
+ GetResponseInfoConst(&info);
+ // If we have headers, get the response code from them.
+ if (info.headers)
+ return info.headers->response_code();
+ return net::URLRequestJob::GetResponseCode();
+}
+
bool URLRequestMockHTTPJob::GetCharset(std::string* charset) {
net::HttpResponseInfo info;
GetResponseInfo(&info);

Powered by Google App Engine
This is Rietveld 408576698