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

Unified Diff: net/tools/quic/quic_simple_client_bin.cc

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 9 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/quic/quic_simple_client.cc ('k') | net/tools/quic/quic_simple_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_client_bin.cc
diff --git a/net/tools/quic/quic_simple_client_bin.cc b/net/tools/quic/quic_simple_client_bin.cc
index b0a6075f2eca9401efc8bbcc5db60b0e6eba8b46..810e4099cb8dd34435e0a9d5e66f302865c3ad82 100644
--- a/net/tools/quic/quic_simple_client_bin.cc
+++ b/net/tools/quic/quic_simple_client_bin.cc
@@ -235,11 +235,11 @@ int main(int argc, char *argv[]) {
request.url = url;
// Append any additional headers supplied on the command line.
- vector<string> headers_tokenized;
- Tokenize(FLAGS_headers, ";", &headers_tokenized);
- for (size_t i = 0; i < headers_tokenized.size(); ++i) {
+ for (const std::string& header :
+ base::SplitString(FLAGS_headers, ";", base::KEEP_WHITESPACE,
+ base::SPLIT_WANT_NONEMPTY)) {
string sp;
- base::TrimWhitespaceASCII(headers_tokenized[i], base::TRIM_ALL, &sp);
+ base::TrimWhitespaceASCII(header, base::TRIM_ALL, &sp);
if (sp.empty()) {
continue;
}
« no previous file with comments | « net/tools/quic/quic_simple_client.cc ('k') | net/tools/quic/quic_simple_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698