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

Unified Diff: services/device/android/java/src/org/chromium/services/device/InterfaceRegistrar.java

Issue 2755363002: [DeviceService] Port VibrationManager to be hosted in Device Service (Closed)
Patch Set: Rebase only Created 3 years, 9 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/device/BUILD.gn ('k') | services/device/device_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ef627a127aa68c183dd33db842b38879ed4fa81a..34244f0aa79b02a957e8f430fd550beac4960de5 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
@@ -10,6 +10,8 @@ import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
import org.chromium.device.BatteryMonitor;
import org.chromium.device.battery.BatteryMonitorFactory;
+import org.chromium.device.mojom.VibrationManager;
+import org.chromium.device.vibration.VibrationManagerImpl;
import org.chromium.mojo.system.impl.CoreImpl;
import org.chromium.services.service_manager.InterfaceRegistry;
@@ -23,5 +25,7 @@ class InterfaceRegistrar {
CoreImpl.getInstance().acquireNativeHandle(nativeHandle).toMessagePipeHandle());
registry.addInterface(
BatteryMonitor.MANAGER, new BatteryMonitorFactory(applicationContext));
+ registry.addInterface(
+ VibrationManager.MANAGER, new VibrationManagerImpl.Factory(applicationContext));
}
}
« no previous file with comments | « services/device/BUILD.gn ('k') | services/device/device_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698