Index: services/device/android/java/src/org/chromium/services/device/InterfaceRegistrar.java |
diff --git a/services/device/android/java/src/org/chromium/services/device/InterfaceRegistrar.java b/services/device/android/java/src/org/chromium/services/device/InterfaceRegistrar.java |
index b9e230bb922259044f9a81661fcdcc6ebc259290..3ad781da172984e7a2f985391a2690c466b6a3be 100644 |
--- a/services/device/android/java/src/org/chromium/services/device/InterfaceRegistrar.java |
+++ b/services/device/android/java/src/org/chromium/services/device/InterfaceRegistrar.java |
@@ -4,8 +4,6 @@ |
package org.chromium.services.device; |
-import android.content.Context; |
- |
import org.chromium.base.annotations.CalledByNative; |
import org.chromium.base.annotations.JNINamespace; |
import org.chromium.device.battery.BatteryMonitorFactory; |
@@ -18,14 +16,12 @@ import org.chromium.services.service_manager.InterfaceRegistry; |
@JNINamespace("device") |
class InterfaceRegistrar { |
@CalledByNative |
- static void createInterfaceRegistryForContext(int nativeHandle, Context applicationContext) { |
+ static void createInterfaceRegistryForContext(int nativeHandle) { |
// Note: The bindings code manages the lifetime of this object, so it |
// is not necessary to hold on to a reference to it explicitly. |
InterfaceRegistry registry = InterfaceRegistry.create( |
CoreImpl.getInstance().acquireNativeHandle(nativeHandle).toMessagePipeHandle()); |
- registry.addInterface( |
- BatteryMonitor.MANAGER, new BatteryMonitorFactory(applicationContext)); |
- registry.addInterface( |
- VibrationManager.MANAGER, new VibrationManagerImpl.Factory(applicationContext)); |
+ registry.addInterface(BatteryMonitor.MANAGER, new BatteryMonitorFactory()); |
+ registry.addInterface(VibrationManager.MANAGER, new VibrationManagerImpl.Factory()); |
} |
} |