Commit 1913f449 authored by Asanka Herath's avatar Asanka Herath Committed by Commit Bot

[net/auth] Rename props to challenge_tokens

Split off from follow up CLs for ease of review.

Bug: 927182
Change-Id: I03b122b8378d85ba80c975981b67ada43e349f69
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1546234Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Commit-Queue: Asanka Herath <asanka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653473}
parent 7f027cd3
......@@ -67,6 +67,7 @@ HttpAuth::AuthorizationResult HttpAuth::HandleChallengeResponse(
std::string* challenge_used) {
DCHECK(handler);
DCHECK(challenge_used);
challenge_used->clear();
HttpAuth::Scheme current_scheme = handler->auth_scheme();
if (disabled_schemes.find(current_scheme) != disabled_schemes.end())
......@@ -78,11 +79,12 @@ HttpAuth::AuthorizationResult HttpAuth::HandleChallengeResponse(
HttpAuth::AuthorizationResult authorization_result =
HttpAuth::AUTHORIZATION_RESULT_INVALID;
while (response_headers.EnumerateHeader(&iter, header_name, &challenge)) {
HttpAuthChallengeTokenizer props(challenge.begin(), challenge.end());
if (!base::LowerCaseEqualsASCII(props.scheme(),
current_scheme_name.c_str()))
HttpAuthChallengeTokenizer challenge_tokens(challenge.begin(),
challenge.end());
if (!base::LowerCaseEqualsASCII(challenge_tokens.scheme(),
current_scheme_name))
continue;
authorization_result = handler->HandleAnotherChallenge(&props);
authorization_result = handler->HandleAnotherChallenge(&challenge_tokens);
if (authorization_result != HttpAuth::AUTHORIZATION_RESULT_INVALID) {
*challenge_used = challenge;
return authorization_result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment