| Index: components/tracing/core/proto_zero_message.cc
|
| diff --git a/components/tracing/core/proto_zero_message.cc b/components/tracing/core/proto_zero_message.cc
|
| index a4e056eee259e3e8638af55e81677daf9c0fd3fc..a555683428cacbfc3b0a2cd007fdf3b5f89037c6 100644
|
| --- a/components/tracing/core/proto_zero_message.cc
|
| +++ b/components/tracing/core/proto_zero_message.cc
|
| @@ -82,7 +82,7 @@ size_t ProtoZeroMessage::Finalize() {
|
| #endif
|
| DCHECK_LT(size_, proto::kMaxMessageLength);
|
| DCHECK_EQ(proto::kMessageLengthFieldSize, size_field_.size());
|
| - proto::WriteRedundantLength(
|
| + proto::WriteRedundantVarInt(
|
| static_cast<uint32_t>(size_ - size_already_written_),
|
| size_field_.begin);
|
| size_field_.reset();
|
|
|