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

Unified Diff: components/tracing/core/proto_zero_message.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.cc
diff --git a/components/tracing/core/proto_zero_message.cc b/components/tracing/core/proto_zero_message.cc
index a4e056eee259e3e8638af55e81677daf9c0fd3fc..7415bb09ed076d21924359e7c6916874a38377f8 100644
--- a/components/tracing/core/proto_zero_message.cc
+++ b/components/tracing/core/proto_zero_message.cc
@@ -125,5 +125,12 @@ void ProtoZeroMessage::EndNestedMessage() {
nested_message_ = nullptr;
}
+#if DCHECK_IS_ON()
+void ProtoZeroMessage::SealField(uint32_t field_id) {
+ if (handle_ != nullptr)
+ handle_->SealField(field_id);
+}
+#endif
+
} // namespace v2
} // namespace tracing

Powered by Google App Engine
This is Rietveld 408576698