Index: net/quic/quic_crypto_server_stream.cc |
diff --git a/net/quic/quic_crypto_server_stream.cc b/net/quic/quic_crypto_server_stream.cc |
index 26479489340734cf4857f99b82912bf814b250c9..7dbee38535fd2b28bd80a8e2026e008029bcafe4 100644 |
--- a/net/quic/quic_crypto_server_stream.cc |
+++ b/net/quic/quic_crypto_server_stream.cc |
@@ -238,7 +238,7 @@ void QuicCryptoServerStream::SendServerConfigUpdate( |
DVLOG(1) << "Server: Sending server config update: " |
<< server_config_update_message.DebugString(); |
const QuicData& data = server_config_update_message.GetSerialized(); |
- WriteOrBufferData(string(data.data(), data.length()), false, nullptr); |
+ WriteOrBufferData(StringPiece(data.data(), data.length()), false, nullptr); |
++num_server_config_update_messages_sent_; |
} |