Remove mojo:tracing's support for wrong-way service providers. R=vardhan@google.com BUG=#762 Review URL: https://codereview.chromium.org/1970533002 .
diff --git a/services/tracing/tracing_app.cc b/services/tracing/tracing_app.cc index 930c5e5..036e583 100644 --- a/services/tracing/tracing_app.cc +++ b/services/tracing/tracing_app.cc
@@ -18,18 +18,6 @@ bool TracingApp::ConfigureIncomingConnection( mojo::ApplicationConnection* connection) { connection->AddService<TraceCollector>(this); - - // If someone connects to us they may want to use the TraceCollector - // interface and/or they may want to expose themselves to be traced. Attempt - // to connect to the TraceProvider interface to see if the application - // connecting to us wants to be traced. They can refuse the connection or - // close the pipe if not. - // TODO(vtl): Remove this once we remove the "wrong way" ServiceProvider. - TraceProviderPtr provider_ptr; - connection->ConnectToService(&provider_ptr); - if (provider_ptr) - RegisterTraceProvider(provider_ptr.PassInterfaceHandle()); - return true; }