Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(921)

Unified Diff: media/mojo/services/mojo_media_application.cc

Issue 1681813002: Rename Connection::AddService/ConnectToService to Connection::AddInterface/GetInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interface_binder
Patch Set: . Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/services/media_apptest.cc ('k') | mojo/public/cpp/bindings/tests/versioning_test_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « media/mojo/services/media_apptest.cc ('k') | mojo/public/cpp/bindings/tests/versioning_test_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698