| Index: content/renderer/renderer_blink_platform_impl.cc
|
| diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
|
| index 9b5d79121e925bd0e21584aeeb210ec30418bee5..c247612a17c764283b9b8ce3f3bd772bbdf72a88 100644
|
| --- a/content/renderer/renderer_blink_platform_impl.cc
|
| +++ b/content/renderer/renderer_blink_platform_impl.cc
|
| @@ -35,7 +35,6 @@
|
| #include "content/common/mime_registry_messages.h"
|
| #include "content/common/view_messages.h"
|
| #include "content/public/common/content_switches.h"
|
| -#include "content/public/common/service_registry.h"
|
| #include "content/public/common/webplugininfo.h"
|
| #include "content/public/renderer/content_renderer_client.h"
|
| #include "content/renderer/battery_status/battery_status_dispatcher.h"
|
| @@ -1055,21 +1054,12 @@
|
| //------------------------------------------------------------------------------
|
|
|
| void RendererBlinkPlatformImpl::vibrate(unsigned int milliseconds) {
|
| - GetConnectedVibrationManagerService()->Vibrate(
|
| - base::checked_cast<int64>(milliseconds));
|
| + RenderThread::Get()->Send(
|
| + new ViewHostMsg_Vibrate(base::checked_cast<int64>(milliseconds)));
|
| }
|
|
|
| void RendererBlinkPlatformImpl::cancelVibration() {
|
| - GetConnectedVibrationManagerService()->Cancel();
|
| -}
|
| -
|
| -device::VibrationManagerPtr&
|
| -RendererBlinkPlatformImpl::GetConnectedVibrationManagerService() {
|
| - if (!vibration_manager_) {
|
| - RenderThread::Get()->GetServiceRegistry()
|
| - ->ConnectToRemoteService(&vibration_manager_);
|
| - }
|
| - return vibration_manager_;
|
| + RenderThread::Get()->Send(new ViewHostMsg_CancelVibration());
|
| }
|
|
|
| //------------------------------------------------------------------------------
|
|
|