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

Unified Diff: net/quic/chromium/quic_utils_chromium.cc

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 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/quic/chromium/quic_test_packet_maker.cc ('k') | net/quic/core/crypto/aead_base_decrypter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_utils_chromium.cc
diff --git a/net/quic/chromium/quic_utils_chromium.cc b/net/quic/chromium/quic_utils_chromium.cc
index 7d3ba451f91392bbb5b382d7864c1707b2eae6b8..ef15dc33e37f1af505fbf5de4ef525a2d7d1b039 100644
--- a/net/quic/chromium/quic_utils_chromium.cc
+++ b/net/quic/chromium/quic_utils_chromium.cc
@@ -5,8 +5,8 @@
#include "net/quic/chromium/quic_utils_chromium.h"
#include "base/containers/adapters.h"
-#include "base/strings/string_piece.h"
#include "base/strings/string_split.h"
+#include "net/quic/platform/api/quic_string_piece.h"
namespace net {
@@ -15,7 +15,7 @@ QuicTagVector ParseQuicConnectionOptions(
QuicTagVector options;
// Tokens are expected to be no more than 4 characters long, but
// handle overflow gracefully.
- for (const base::StringPiece& token :
+ for (const QuicStringPiece& token :
base::SplitStringPiece(connection_options, ",", base::TRIM_WHITESPACE,
base::SPLIT_WANT_ALL)) {
uint32_t option = 0;
« no previous file with comments | « net/quic/chromium/quic_test_packet_maker.cc ('k') | net/quic/core/crypto/aead_base_decrypter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698