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

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

Issue 2591143003: Add QuicStrCat. (Closed)
Patch Set: sync 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
« no previous file with comments | « net/quic/core/quic_connection_test.cc ('k') | net/quic/core/quic_flow_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2d9ba15541523b0928cfdc4be68422a3531273a7..732e23a7efb0ebd919aad01d7b7cf0533d4c88a3 100644
--- a/net/quic/core/quic_crypto_client_stream.cc
+++ b/net/quic/core/quic_crypto_client_stream.cc
@@ -17,11 +17,14 @@
#include "net/quic/core/quic_packets.h"
#include "net/quic/core/quic_session.h"
#include "net/quic/core/quic_utils.h"
+#include "net/quic/platform/api/quic_str_cat.h"
using std::string;
namespace net {
+const int QuicCryptoClientStream::kMaxClientHellos;
+
QuicCryptoClientStreamBase::QuicCryptoClientStreamBase(QuicSession* session)
: QuicCryptoStream(session) {}
@@ -277,7 +280,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_++;
« no previous file with comments | « net/quic/core/quic_connection_test.cc ('k') | net/quic/core/quic_flow_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698