Index: mojo/shell/application_package_apptest.cc |
diff --git a/mojo/shell/application_package_apptest.cc b/mojo/shell/application_package_apptest.cc |
index 7ccf0baf423cee7701f5fcce2d091d72721dcc1d..7d2e43c3d34183e77f9185520eee7867caf098c2 100644 |
--- a/mojo/shell/application_package_apptest.cc |
+++ b/mojo/shell/application_package_apptest.cc |
@@ -53,7 +53,8 @@ class ProvidedApplicationDelegate |
// mojo::ShellClient: |
void Initialize(Shell* shell, const std::string& url, uint32_t id) override {} |
bool AcceptConnection(Connection* connection) override { |
- connection->AddService<test::mojom::ApplicationPackageApptestService>(this); |
+ connection->AddInterface<test::mojom::ApplicationPackageApptestService>( |
+ this); |
return true; |
} |
@@ -99,8 +100,9 @@ class ApplicationPackageApptestDelegate |
// mojo::ShellClient: |
void Initialize(Shell* shell, const std::string& url, uint32_t id) override {} |
bool AcceptConnection(Connection* connection) override { |
- connection->AddService<ContentHandler>(this); |
- connection->AddService<test::mojom::ApplicationPackageApptestService>(this); |
+ connection->AddInterface<ContentHandler>(this); |
+ connection->AddInterface<test::mojom::ApplicationPackageApptestService>( |
+ this); |
return true; |
} |