Index: mojo/shell/application_manager_apptest.cc |
diff --git a/mojo/shell/application_manager_apptest.cc b/mojo/shell/application_manager_apptest.cc |
index 92c7272d8168c3e47977eb3faf16efe1a1c33ef3..a725faececafec8fb6c1dbb7ab89904e32d46995 100644 |
--- a/mojo/shell/application_manager_apptest.cc |
+++ b/mojo/shell/application_manager_apptest.cc |
@@ -41,7 +41,7 @@ class ApplicationManagerAppTestDelegate |
// mojo::ShellClient: |
void Initialize(Shell* shell, const std::string& url, uint32_t id) override {} |
bool AcceptConnection(Connection* connection) override { |
- connection->AddService<CreateInstanceForHandleTest>(this); |
+ connection->AddInterface<CreateInstanceForHandleTest>(this); |
return true; |
} |
@@ -175,7 +175,7 @@ TEST_F(ApplicationManagerAppTest, CreateInstanceForHandle) { |
mojo::shell::test::mojom::DriverPtr driver; |
scoped_ptr<Connection> connection = |
shell()->Connect("exe:application_manager_apptest_driver"); |
- connection->ConnectToService(&driver); |
+ connection->GetInterface(&driver); |
// 2. Wait for the target to connect to us. (via |
// mojo:application_manager_apptests) |