Index: services/tracing/service.cc |
diff --git a/services/tracing/service.cc b/services/tracing/service.cc |
index 5cf938c40f5b23efdae218350c35119bcb5dfa9f..2d61ff4263dc4a475fc3d3fbd37c2c1611e879d6 100644 |
--- a/services/tracing/service.cc |
+++ b/services/tracing/service.cc |
@@ -12,16 +12,18 @@ |
#include "base/bind.h" |
#include "base/logging.h" |
#include "base/message_loop/message_loop.h" |
+#include "services/shell/public/cpp/interface_registry.h" |
namespace tracing { |
Service::Service() : collector_binding_(this), tracing_active_(false) {} |
Service::~Service() {} |
-bool Service::OnConnect(shell::Connection* connection) { |
- connection->AddInterface<mojom::Factory>(this); |
- connection->AddInterface<mojom::Collector>(this); |
- connection->AddInterface<mojom::StartupPerformanceDataCollector>(this); |
+bool Service::OnConnect(const shell::Identity& remote_identity, |
+ shell::InterfaceRegistry* registry) { |
+ registry->AddInterface<mojom::Factory>(this); |
+ registry->AddInterface<mojom::Collector>(this); |
+ registry->AddInterface<mojom::StartupPerformanceDataCollector>(this); |
return true; |
} |