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

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

Issue 2182643003: Remove shell::Connection* parameter to InterfaceFactory<T>::Create() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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/mojo_media_application.h ('k') | services/catalog/catalog.h » ('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 38ce3a9f3392fde708142803ceb27e7e77e53087..3fd872df42c084231abf1f579e1576342e6aed9b 100644
--- a/media/mojo/services/mojo_media_application.cc
+++ b/media/mojo/services/mojo_media_application.cc
@@ -36,6 +36,7 @@ void MojoMediaApplication::OnStart(shell::Connector* connector,
bool MojoMediaApplication::OnConnect(shell::Connection* connection) {
connection->AddInterface<mojom::ServiceFactory>(this);
+ remote_interface_provider_ = connection->GetRemoteInterfaceProvider();
return true;
}
@@ -45,12 +46,12 @@ bool MojoMediaApplication::OnStop() {
}
void MojoMediaApplication::Create(
- shell::Connection* connection,
+ const shell::Identity& remote_identity,
mojo::InterfaceRequest<mojom::ServiceFactory> request) {
// The created object is owned by the pipe.
- new ServiceFactoryImpl(std::move(request),
- connection->GetRemoteInterfaceProvider(), media_log_,
- ref_factory_.CreateRef(), mojo_media_client_.get());
+ new ServiceFactoryImpl(std::move(request), remote_interface_provider_,
+ media_log_, ref_factory_.CreateRef(),
+ mojo_media_client_.get());
}
} // namespace media
« no previous file with comments | « media/mojo/services/mojo_media_application.h ('k') | services/catalog/catalog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698