Index: media/mojo/services/mojo_media_application.cc |
diff --git a/media/mojo/services/mojo_media_application.cc b/media/mojo/services/mojo_media_application.cc |
index a84ef88fff488a30e361289b33913d316fed8ff9..74c0df5136320ef8826d5e53939243d268b18028 100644 |
--- a/media/mojo/services/mojo_media_application.cc |
+++ b/media/mojo/services/mojo_media_application.cc |
@@ -38,7 +38,7 @@ void MojoMediaApplication::Initialize(mojo::Shell* shell, |
} |
bool MojoMediaApplication::AcceptConnection(mojo::Connection* connection) { |
- connection->AddService<interfaces::ServiceFactory>(this); |
+ connection->AddInterface<interfaces::ServiceFactory>(this); |
return true; |
} |
@@ -46,7 +46,7 @@ void MojoMediaApplication::Create( |
mojo::Connection* connection, |
mojo::InterfaceRequest<interfaces::ServiceFactory> request) { |
// The created object is owned by the pipe. |
- new ServiceFactoryImpl(std::move(request), connection->GetServiceProvider(), |
+ new ServiceFactoryImpl(std::move(request), connection->GetRemoteInterfaces(), |
media_log_, shell_->CreateAppRefCount(), |
mojo_media_client_.get()); |
} |