| Index: components/tracing/core/proto_zero_message_handle.cc
|
| diff --git a/components/tracing/core/proto_zero_message_handle.cc b/components/tracing/core/proto_zero_message_handle.cc
|
| index 1906cf24721cb00d4b291963c8c3f5f3f2d3992d..b40f135fe3241fc90ad7e1e6c5f5d855bd864a70 100644
|
| --- a/components/tracing/core/proto_zero_message_handle.cc
|
| +++ b/components/tracing/core/proto_zero_message_handle.cc
|
| @@ -42,15 +42,15 @@ ProtoZeroMessageHandleBase::ProtoZeroMessageHandleBase(
|
|
|
| ProtoZeroMessageHandleBase& ProtoZeroMessageHandleBase::operator=(
|
| ProtoZeroMessageHandleBase&& other) {
|
| + // If the current handle was pointing to a message and is being reset to a new
|
| + // one, finalize the old message.
|
| + FinalizeMessageIfSet(message_);
|
| +
|
| Move(&other);
|
| return *this;
|
| }
|
|
|
| void ProtoZeroMessageHandleBase::Move(ProtoZeroMessageHandleBase* other) {
|
| - // If the current handle was pointing to a message and is being reset to a new
|
| - // one, finalize the old message.
|
| - FinalizeMessageIfSet(message_);
|
| -
|
| // In theory other->message_ could be nullptr, if |other| is a handle that has
|
| // been std::move-d (and hence empty). There isn't a legitimate use case for
|
| // doing so, though. Therefore this case is deliberately ignored (if hit, it
|
|
|