Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Unified Diff: components/tracing/core/proto_zero_message_handle.cc

Issue 2240043004: Tracing V2: Fully-functional plugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..1d890c0198681f224d61fede9fbcd68685dde8a3 100644
--- a/components/tracing/core/proto_zero_message_handle.cc
+++ b/components/tracing/core/proto_zero_message_handle.cc
@@ -57,6 +57,7 @@ void ProtoZeroMessageHandleBase::Move(ProtoZeroMessageHandleBase* other) {
// will manifest as a segfault when dereferencing |message_| below) to avoid a
// useless null-check.
message_ = other->message_;
+ sealed_fields_ = std::move(other->sealed_fields_);
other->message_ = nullptr;
#if DCHECK_IS_ON()
message_->set_handle(this);

Powered by Google App Engine
This is Rietveld 408576698