Index: device/devices_app/devices_app.cc |
diff --git a/device/devices_app/devices_app.cc b/device/devices_app/devices_app.cc |
index a34064404fa3040b6cfc6a5367b3f25add213a56..8bb9ab9387203ed0ce0837115f906588ba34b8a2 100644 |
--- a/device/devices_app/devices_app.cc |
+++ b/device/devices_app/devices_app.cc |
@@ -89,7 +89,7 @@ void DevicesApp::Initialize(mojo::Shell* shell, |
} |
bool DevicesApp::AcceptConnection(mojo::Connection* connection) { |
- connection->AddService<usb::DeviceManager>(this); |
+ connection->AddInterface<usb::DeviceManager>(this); |
return true; |
} |
@@ -103,7 +103,7 @@ void DevicesApp::Create(mojo::Connection* connection, |
// Bind the new device manager to the connecting application's permission |
// provider. |
usb::PermissionProviderPtr permission_provider; |
- connection->ConnectToService(&permission_provider); |
+ connection->GetInterface(&permission_provider); |
// Owned by its message pipe. |
usb::DeviceManagerImpl* device_manager = new usb::DeviceManagerImpl( |