Index: mojo/services/tracing/tracing_app.cc |
diff --git a/mojo/services/tracing/tracing_app.cc b/mojo/services/tracing/tracing_app.cc |
index 09d1f3b74f671ab8614b575ccecf4d555371f565..974ce0d6c38da69dc13d4a84c1b2557d171e8e7f 100644 |
--- a/mojo/services/tracing/tracing_app.cc |
+++ b/mojo/services/tracing/tracing_app.cc |
@@ -22,8 +22,8 @@ TracingApp::~TracingApp() { |
} |
bool TracingApp::AcceptConnection(mojo::Connection* connection) { |
- connection->AddService<TraceCollector>(this); |
- connection->AddService<StartupPerformanceDataCollector>(this); |
+ connection->AddInterface<TraceCollector>(this); |
+ connection->AddInterface<StartupPerformanceDataCollector>(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 |
@@ -31,7 +31,7 @@ bool TracingApp::AcceptConnection(mojo::Connection* connection) { |
// connecting to us wants to be traced. They can refuse the connection or |
// close the pipe if not. |
TraceProviderPtr provider_ptr; |
- connection->ConnectToService(&provider_ptr); |
+ connection->GetInterface(&provider_ptr); |
if (tracing_active_) { |
TraceRecorderPtr recorder_ptr; |
recorder_impls_.push_back( |