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

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

Issue 1215933004: New new versions of Starts/EndsWith and SplitString in net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@starts_with
Patch Set: Created 5 years, 5 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
« no previous file with comments | « net/tools/balsa/balsa_frame.cc ('k') | net/tools/balsa/string_piece_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c5dfeea3334ad753aede7bedb35d50983de3721b 100644
--- a/net/tools/balsa/balsa_headers_token_utils.cc
+++ b/net/tools/balsa/balsa_headers_token_utils.cc
@@ -3,7 +3,6 @@
// found in the LICENSE file.
#include "net/tools/balsa/balsa_headers_token_utils.h"
-#include "net/tools/balsa/string_piece_utils.h"
namespace net {
@@ -86,7 +85,8 @@ bool BalsaHeadersTokenUtils::CheckHeaderForLastToken(
&tokens);
return !tokens.empty() &&
- StringPieceUtils::StartsWithIgnoreCase(tokens.back(), token);
+ base::StartsWith(tokens.back(), token,
+ base::CompareCase::INSENSITIVE_ASCII);
}
void BalsaHeadersTokenUtils::TokenizeHeaderValue(
« no previous file with comments | « net/tools/balsa/balsa_frame.cc ('k') | net/tools/balsa/string_piece_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698