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

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

Issue 2591143003: Add QuicStrCat. (Closed)
Patch Set: fix include 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..381b1142ed2b3387ab05e1448f6b449d5d20540f 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_++;

Powered by Google App Engine
This is Rietveld 408576698