| Index: net/tools/balsa/balsa_headers_token_utils.cc
|
| diff --git a/net/tools/balsa/balsa_headers_token_utils.cc b/net/tools/balsa/balsa_headers_token_utils.cc
|
| index c807e05c9ab06f6c72ea1b23ddaeb53ccad96c30..35012b54db9d71626bf181d9b4eb5335209a5237 100644
|
| --- a/net/tools/balsa/balsa_headers_token_utils.cc
|
| +++ b/net/tools/balsa/balsa_headers_token_utils.cc
|
| @@ -25,7 +25,8 @@ inline void BalsaHeadersTokenUtils::TokenizeHeaderLine(
|
| }
|
|
|
| void BalsaHeadersTokenUtils::RemoveLastTokenFromHeaderValue(
|
| - const base::StringPiece& key, BalsaHeaders* headers) {
|
| + const base::StringPiece& key,
|
| + BalsaHeaders* headers) {
|
| BalsaHeaders::HeaderLines::iterator it =
|
| headers->GetHeaderLinesIterator(key, headers->header_lines_.begin());
|
| if (it == headers->header_lines_.end()) {
|
| @@ -39,8 +40,7 @@ void BalsaHeadersTokenUtils::RemoveLastTokenFromHeaderValue(
|
| do {
|
| header_line = it;
|
| it = headers->GetHeaderLinesIterator(key, it + 1);
|
| - }
|
| - while (it != headers->header_lines_.end());
|
| + } while (it != headers->header_lines_.end());
|
|
|
| // Tokenize just that line.
|
| BalsaHeaders::HeaderTokenList tokens;
|
| @@ -77,16 +77,15 @@ bool BalsaHeadersTokenUtils::CheckHeaderForLastToken(
|
| do {
|
| header_line = it;
|
| ++it;
|
| - }
|
| - while (it != headers.header_lines_key_end());
|
| + } while (it != headers.header_lines_key_end());
|
|
|
| // Tokenize just that line
|
| BalsaHeaders::HeaderTokenList tokens;
|
| - ParseTokenList(header_line->second.begin(), header_line->second.end(),
|
| - &tokens);
|
| + ParseTokenList(
|
| + header_line->second.begin(), header_line->second.end(), &tokens);
|
|
|
| return !tokens.empty() &&
|
| - StringPieceUtils::StartsWithIgnoreCase(tokens.back(), token);
|
| + StringPieceUtils::StartsWithIgnoreCase(tokens.back(), token);
|
| }
|
|
|
| void BalsaHeadersTokenUtils::TokenizeHeaderValue(
|
| @@ -100,9 +99,10 @@ void BalsaHeadersTokenUtils::TokenizeHeaderValue(
|
| // and stick all the tokens into the same list.
|
| for (BalsaHeaders::const_header_lines_key_iterator header_line =
|
| headers.GetIteratorForKey(key);
|
| - header_line != headers.header_lines_key_end(); ++header_line) {
|
| - ParseTokenList(header_line->second.begin(), header_line->second.end(),
|
| - tokens);
|
| + header_line != headers.header_lines_key_end();
|
| + ++header_line) {
|
| + ParseTokenList(
|
| + header_line->second.begin(), header_line->second.end(), tokens);
|
| }
|
| }
|
|
|
| @@ -139,4 +139,3 @@ void BalsaHeadersTokenUtils::ParseTokenList(
|
| }
|
|
|
| } // namespace net
|
| -
|
|
|