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

Unified Diff: net/quic/core/quic_crypto_client_stream.cc

Issue 2591143003: Add QuicStrCat. (Closed)
Patch Set: correct quic_client_bin.cc Created 4 years 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/quic/core/quic_crypto_client_stream.cc
diff --git a/net/quic/core/quic_crypto_client_stream.cc b/net/quic/core/quic_crypto_client_stream.cc
index 98a64abafd8c8fd156b7784bc80f8e00e297bb26..9d1b18abdafe1144f4958afb6161f1b17fd327e6 100644
--- a/net/quic/core/quic_crypto_client_stream.cc
+++ b/net/quic/core/quic_crypto_client_stream.cc
@@ -22,6 +22,8 @@ using std::string;
namespace net {
+const int QuicCryptoClientStream::kMaxClientHellos;
+
QuicCryptoClientStreamBase::QuicCryptoClientStreamBase(QuicSession* session)
: QuicCryptoStream(session) {}
@@ -277,7 +279,7 @@ void QuicCryptoClientStream::DoSendCHLO(
if (num_client_hellos_ > kMaxClientHellos) {
CloseConnectionWithDetails(
QUIC_CRYPTO_TOO_MANY_REJECTS,
- base::StringPrintf("More than %u rejects", kMaxClientHellos).c_str());
+ QuicStrCat("More than ", kMaxClientHellos, " rejects"));
return;
}
num_client_hellos_++;

Powered by Google App Engine
This is Rietveld 408576698