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

Unified Diff: net/tools/quic/quic_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/net_watcher/net_watcher.cc ('k') | net/tools/quic/quic_in_memory_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client_bin.cc
diff --git a/net/tools/quic/quic_client_bin.cc b/net/tools/quic/quic_client_bin.cc
index 3fd7477a2a55daa321d67c7709b5637a1582eb38..315186eceed91991791da52bc2df15708705bd93 100644
--- a/net/tools/quic/quic_client_bin.cc
+++ b/net/tools/quic/quic_client_bin.cc
@@ -235,11 +235,11 @@ int main(int argc, char *argv[]) {
FLAGS_body.empty() ? "GET" : "POST", url.spec(), "HTTP/1.1");
// 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/net_watcher/net_watcher.cc ('k') | net/tools/quic/quic_in_memory_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698