Index: net/http/http_auth_handler_mock.cc |
diff --git a/net/http/http_auth_handler_mock.cc b/net/http/http_auth_handler_mock.cc |
index 04a09e4d6b1333ac0ea2ea79d60b684a75a34ea7..c6f0ada5c57ff5e7e20e0ebfd68c38638c11ca13 100644 |
--- a/net/http/http_auth_handler_mock.cc |
+++ b/net/http/http_auth_handler_mock.cc |
@@ -101,7 +101,8 @@ bool HttpAuthHandlerMock::AllowsExplicitCredentials() { |
return allows_explicit_credentials_; |
} |
-bool HttpAuthHandlerMock::Init(HttpAuthChallengeTokenizer* challenge) { |
+bool HttpAuthHandlerMock::Init(HttpAuthChallengeTokenizer* challenge, |
+ const HttpResponseInfo& response_info) { |
auth_scheme_ = HttpAuth::AUTH_SCHEME_MOCK; |
score_ = 1; |
properties_ = connection_based_ ? IS_CONNECTION_BASED : 0; |
@@ -167,6 +168,7 @@ void HttpAuthHandlerMock::Factory::AddMockHandler( |
int HttpAuthHandlerMock::Factory::CreateAuthHandler( |
HttpAuthChallengeTokenizer* challenge, |
HttpAuth::Target target, |
+ const HttpResponseInfo& response_info, |
const GURL& origin, |
CreateReason reason, |
int nonce_count, |
@@ -178,7 +180,8 @@ int HttpAuthHandlerMock::Factory::CreateAuthHandler( |
std::vector<scoped_ptr<HttpAuthHandler>>& handlers = handlers_[target]; |
handlers.erase(handlers.begin()); |
if (do_init_from_challenge_ && |
- !tmp_handler->InitFromChallenge(challenge, target, origin, net_log)) |
+ !tmp_handler->InitFromChallenge(challenge, target, response_info, origin, |
+ net_log)) |
return ERR_INVALID_RESPONSE; |
handler->swap(tmp_handler); |
return OK; |