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

Unified Diff: net/tools/balsa/balsa_headers_token_utils.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: 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
-

Powered by Google App Engine
This is Rietveld 408576698