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

Unified Diff: services/device_info/device_info.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 | « services/clipboard/main.cc ('k') | services/files/files_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/device_info/device_info.cc
diff --git a/services/device_info/device_info.cc b/services/device_info/device_info.cc
index 54fe54c0f649514224f310caf4d717ed3ce6cac3..59cfe33882ce3374ddab7ca4e67e2c95a8b2bf36 100644
--- a/services/device_info/device_info.cc
+++ b/services/device_info/device_info.cc
@@ -19,9 +19,9 @@ namespace device_info {
// This is a native Mojo application which implements |DeviceInfo| interface for
// Linux.
-class DeviceInfo : public mojo::ApplicationDelegate,
+class DeviceInfo : public ApplicationDelegate,
public mojo::DeviceInfo,
- public mojo::InterfaceFactory<mojo::DeviceInfo> {
+ public InterfaceFactory<mojo::DeviceInfo> {
public:
// We look for the 'DISPLAY' environment variable. If present, then we assume
// it to be a desktop, else we assume it to be a commandline
@@ -38,8 +38,8 @@ class DeviceInfo : public mojo::ApplicationDelegate,
}
// |InterfaceFactory<DeviceInfo>| implementation.
- void Create(mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::DeviceInfo> request) override {
+ void Create(const ConnectionContext& connection_context,
+ InterfaceRequest<mojo::DeviceInfo> request) override {
binding_.AddBinding(this, request.Pass());
}
« no previous file with comments | « services/clipboard/main.cc ('k') | services/files/files_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698