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

Unified Diff: services/tracing/tracing_app.cc

Issue 1927973004: Use TraceProviderRegistry in //mojo/common/tracing_impl.*. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « mojo/common/tracing_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/tracing/tracing_app.cc
diff --git a/services/tracing/tracing_app.cc b/services/tracing/tracing_app.cc
index 18a2ea4a96a9af8828f41342e4b56d86469aaa86..930c5e5974dd3f505c9c1c458a62bce44a42feab 100644
--- a/services/tracing/tracing_app.cc
+++ b/services/tracing/tracing_app.cc
@@ -27,7 +27,8 @@ bool TracingApp::ConfigureIncomingConnection(
// TODO(vtl): Remove this once we remove the "wrong way" ServiceProvider.
TraceProviderPtr provider_ptr;
connection->ConnectToService(&provider_ptr);
- RegisterTraceProvider(provider_ptr.PassInterfaceHandle());
+ if (provider_ptr)
+ RegisterTraceProvider(provider_ptr.PassInterfaceHandle());
return true;
}
« no previous file with comments | « mojo/common/tracing_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698