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

Unified Diff: services/sensors/src/org/chromium/mojo/sensors/Sensors.java

Issue 1169543002: Fix the API for ServiceFactoryBinder to be type safe. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/location/src/org/chromium/services/location/LocationServiceApp.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/sensors/src/org/chromium/mojo/sensors/Sensors.java
diff --git a/services/sensors/src/org/chromium/mojo/sensors/Sensors.java b/services/sensors/src/org/chromium/mojo/sensors/Sensors.java
index f39d6e9e4e6dfc2b5df1700f5afe7a7be26c144f..f9e38cdefab516a75e40455f1b134b7de55f2e53 100644
--- a/services/sensors/src/org/chromium/mojo/sensors/Sensors.java
+++ b/services/sensors/src/org/chromium/mojo/sensors/Sensors.java
@@ -10,6 +10,7 @@ import org.chromium.mojo.application.ApplicationConnection;
import org.chromium.mojo.application.ApplicationDelegate;
import org.chromium.mojo.application.ApplicationRunner;
import org.chromium.mojo.application.ServiceFactoryBinder;
+import org.chromium.mojo.bindings.InterfaceRequest;
import org.chromium.mojo.system.Core;
import org.chromium.mojo.system.MessagePipeHandle;
import org.chromium.mojom.mojo.Shell;
@@ -38,8 +39,8 @@ public class Sensors implements ApplicationDelegate {
public boolean configureIncomingConnection(ApplicationConnection connection) {
connection.addService(new ServiceFactoryBinder<SensorService>() {
@Override
- public void bindNewInstanceToMessagePipe(MessagePipeHandle pipe) {
- SensorService.MANAGER.bind(new SensorServiceImpl(mContext), pipe);
+ public void bind(InterfaceRequest<SensorService> request) {
+ SensorService.MANAGER.bind(new SensorServiceImpl(mContext), request);
}
@Override
« no previous file with comments | « services/location/src/org/chromium/services/location/LocationServiceApp.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698