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

Unified Diff: services/location/src/org/chromium/services/location/LocationServiceApp.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
Index: services/location/src/org/chromium/services/location/LocationServiceApp.java
diff --git a/services/location/src/org/chromium/services/location/LocationServiceApp.java b/services/location/src/org/chromium/services/location/LocationServiceApp.java
index 685b8fac84a93fe2a22ee9a07e7f8447366ee454..f82608f664364737537efd02ba1066ac2577dda0 100644
--- a/services/location/src/org/chromium/services/location/LocationServiceApp.java
+++ b/services/location/src/org/chromium/services/location/LocationServiceApp.java
@@ -16,6 +16,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.LocationService;
@@ -104,11 +105,11 @@ class LocationServiceApp implements ApplicationDelegate {
public boolean configureIncomingConnection(ApplicationConnection connection) {
connection.addService(new ServiceFactoryBinder<LocationService>() {
@Override
- public void bindNewInstanceToMessagePipe(MessagePipeHandle pipe) {
+ public void bind(InterfaceRequest<LocationService> request) {
LocationService.MANAGER.bind(
new LocationServiceImpl(mGoogleApiClient, mLooperThread.getLooper(),
mCore.getCurrentRunLoop()),
- pipe);
+ request);
}
@Override

Powered by Google App Engine
This is Rietveld 408576698