Index: services/shell/tests/lifecycle/parent.cc |
diff --git a/services/shell/tests/lifecycle/parent.cc b/services/shell/tests/lifecycle/parent.cc |
index 1f5a9a43ad6878ae9ed84fdccba8995d09e4cd6d..3391e3975acabe205bd574b1d7b3dd64f7978f10 100644 |
--- a/services/shell/tests/lifecycle/parent.cc |
+++ b/services/shell/tests/lifecycle/parent.cc |
@@ -10,6 +10,8 @@ |
#include "mojo/public/cpp/bindings/binding_set.h" |
#include "services/shell/public/c/main.h" |
#include "services/shell/public/cpp/connector.h" |
+#include "services/shell/public/cpp/interface_factory.h" |
+#include "services/shell/public/cpp/interface_registry.h" |
#include "services/shell/public/cpp/service.h" |
#include "services/shell/public/cpp/service_runner.h" |
#include "services/shell/tests/lifecycle/lifecycle_unittest.mojom.h" |
@@ -32,8 +34,9 @@ class Parent : public shell::Service, |
private: |
// Service: |
- bool OnConnect(shell::Connection* connection) override { |
- connection->AddInterface<shell::test::mojom::Parent>(this); |
+ bool OnConnect(const shell::Identity& remote_identity, |
+ shell::InterfaceRegistry* registry) override { |
+ registry->AddInterface<shell::test::mojom::Parent>(this); |
return true; |
} |