Index: net/quic/quic_crypto_stream.cc |
diff --git a/net/quic/quic_crypto_stream.cc b/net/quic/quic_crypto_stream.cc |
index ee44b6cd222305c01d7ef22818cd69267a766a19..f904871673714d17d636047ecf6547c460531485 100644 |
--- a/net/quic/quic_crypto_stream.cc |
+++ b/net/quic/quic_crypto_stream.cc |
@@ -72,7 +72,7 @@ void QuicCryptoStream::SendHandshakeMessage( |
session()->OnCryptoHandshakeMessageSent(message); |
const QuicData& data = message.GetSerialized(); |
// TODO(wtc): check the return value. |
- WriteOrBufferData(string(data.data(), data.length()), false, listener); |
+ WriteOrBufferData(StringPiece(data.data(), data.length()), false, listener); |
} |
bool QuicCryptoStream::ExportKeyingMaterial(StringPiece label, |