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

Unified Diff: mojo/common/tracing_impl.cc

Issue 1305193002: Trace-based benchmarking via a mojo app. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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: mojo/common/tracing_impl.cc
diff --git a/mojo/common/tracing_impl.cc b/mojo/common/tracing_impl.cc
index 2a6eac1e92fc02c8a4110c1fa31d066cab981296..db158dda8446da92b221b0dc3f519bb83a81c45a 100644
--- a/mojo/common/tracing_impl.cc
+++ b/mojo/common/tracing_impl.cc
@@ -24,7 +24,11 @@ void TracingImpl::Initialize(ApplicationImpl* app) {
void TracingImpl::Create(ApplicationConnection* connection,
InterfaceRequest<tracing::TraceProvider> request) {
- new TraceProviderImpl(request.Pass());
+ TraceProviderImpl* trace_provider_impl =
+ new TraceProviderImpl(request.Pass());
+ if (tracing_already_started_) {
+ trace_provider_impl->set_tracing_already_started(tracing_already_started_);
+ }
}
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698