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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

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 | « content/browser/DEPS ('k') | content/public/android/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 11cebcde9f7a3a12c4c5c54b23c768dea2c17c8d..9dc86b4f96263aa8249ac51ddd7ca8cb3f81fe1c 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -97,7 +97,6 @@
#include "content/public/common/url_utils.h"
#include "device/generic_sensor/sensor_provider_impl.h"
#include "device/geolocation/geolocation_service_context.h"
-#include "device/vibration/vibration_manager_impl.h"
#include "device/vr/features.h"
#include "device/wake_lock/wake_lock_service_context.h"
#include "media/base/media_switches.h"
@@ -2468,16 +2467,9 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
base::Bind(&MediaSessionServiceImpl::Create, base::Unretained(this)));
#if defined(OS_ANDROID)
- GetInterfaceRegistry()->AddInterface(
- GetGlobalJavaInterfaces()
- ->CreateInterfaceFactory<device::mojom::VibrationManager>());
-
// Creates a MojoRendererService, passing it a MediaPlayerRender.
GetInterfaceRegistry()->AddInterface<media::mojom::Renderer>(base::Bind(
&content::CreateMediaPlayerRenderer, base::Unretained(this)));
-#else
- GetInterfaceRegistry()->AddInterface(
- base::Bind(&device::VibrationManagerImpl::Create));
#endif // defined(OS_ANDROID)
GetInterfaceRegistry()->AddInterface(base::Bind(
« no previous file with comments | « content/browser/DEPS ('k') | content/public/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698