Replace QuicString with std::string, pass 1
This replaces QuicString with std::string in all of the "QUIC proper". I will
delete QuicString once all code using it is gone.
gfe-relnote: n/a (no functional change)
PiperOrigin-RevId: 237872023
Change-Id: I82de62c9855516b15039734d05155917e68ff4ee
diff --git a/quic/core/quic_packet_creator.cc b/quic/core/quic_packet_creator.cc
index 9d823bc..2fd5203 100644
--- a/quic/core/quic_packet_creator.cc
+++ b/quic/core/quic_packet_creator.cc
@@ -188,7 +188,7 @@
if (FLAGS_quic_enforce_single_packet_chlo &&
StreamFrameStartsWithChlo(frame->stream_frame) &&
frame->stream_frame.data_length < write_length) {
- const QuicString error_details =
+ const std::string error_details =
"Client hello won't fit in a single packet.";
QUIC_BUG << error_details << " Constructed stream frame length: "
<< frame->stream_frame.data_length
@@ -380,7 +380,7 @@
void QuicPacketCreator::OnSerializedPacket() {
if (packet_.encrypted_buffer == nullptr) {
- const QuicString error_details = "Failed to SerializePacket.";
+ const std::string error_details = "Failed to SerializePacket.";
QUIC_BUG << error_details;
delegate_->OnUnrecoverableError(QUIC_FAILED_TO_SERIALIZE_PACKET,
error_details,
@@ -792,7 +792,7 @@
}
void QuicPacketCreator::SetRetryToken(QuicStringPiece retry_token) {
- retry_token_ = QuicString(retry_token);
+ retry_token_ = std::string(retry_token);
}
QuicVariableLengthIntegerLength QuicPacketCreator::GetLengthLength() const {
@@ -849,7 +849,7 @@
frame.stream_frame.stream_id !=
QuicUtils::GetCryptoStreamId(framer_->transport_version()) &&
packet_.encryption_level == ENCRYPTION_NONE) {
- const QuicString error_details =
+ const std::string error_details =
"Cannot send stream data without encryption.";
QUIC_BUG << error_details;
delegate_->OnUnrecoverableError(