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

Unified Diff: ui/ozone/platform/drm/mojo/drm_ipc_init_helper.cc

Issue 1975993002: Change InterfaceFactory<I>::Create() to take a ConnectionContext instead of an ApplicationConnectio… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 | « shell/test/pingable_app.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/mojo/drm_ipc_init_helper.cc
diff --git a/ui/ozone/platform/drm/mojo/drm_ipc_init_helper.cc b/ui/ozone/platform/drm/mojo/drm_ipc_init_helper.cc
index aa486c6d3916172ed144e5babf82645653830f0c..ecbd1a98faff17ba527ee7ff4495279481756388 100644
--- a/ui/ozone/platform/drm/mojo/drm_ipc_init_helper.cc
+++ b/ui/ozone/platform/drm/mojo/drm_ipc_init_helper.cc
@@ -17,29 +17,21 @@ namespace ui {
class InterfaceFactoryDrmHost
: public mojo::InterfaceFactory<mojo::OzoneDrmHost> {
// mojo::InterfaceFactory implementation.
- void Create(mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::OzoneDrmHost> request) override;
+ void Create(const mojo::ConnectionContext& connection_context,
+ mojo::InterfaceRequest<mojo::OzoneDrmHost> request) override {
+ new MojoDrmHostImpl(request.Pass());
+ }
};
class InterfaceFactoryDrmGpu
: public mojo::InterfaceFactory<mojo::OzoneDrmGpu> {
// mojo::InterfaceFactory<OzoneDrmGpu> implementation.
- void Create(mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::OzoneDrmGpu> request) override;
+ void Create(const mojo::ConnectionContext& connection_context,
+ mojo::InterfaceRequest<mojo::OzoneDrmGpu> request) override {
+ new MojoDrmGpuImpl(request.Pass());
+ }
};
-void InterfaceFactoryDrmHost::Create(
- mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::OzoneDrmHost> request) {
- new MojoDrmHostImpl(request.Pass());
-}
-
-void InterfaceFactoryDrmGpu::Create(
- mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::OzoneDrmGpu> request) {
- new MojoDrmGpuImpl(request.Pass());
-}
-
class DrmIpcInitHelperMojo : public IpcInitHelperMojo {
public:
DrmIpcInitHelperMojo();
« no previous file with comments | « shell/test/pingable_app.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698