| Index: device/vibration/vibration_manager_impl_default.cc
|
| diff --git a/device/vibration/vibration_manager_impl_default.cc b/device/vibration/vibration_manager_impl_default.cc
|
| deleted file mode 100644
|
| index c073f69a1f0fecfc80974aee551ff36af7cf822d..0000000000000000000000000000000000000000
|
| --- a/device/vibration/vibration_manager_impl_default.cc
|
| +++ /dev/null
|
| @@ -1,43 +0,0 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include <stdint.h>
|
| -#include <utility>
|
| -
|
| -#include "base/memory/ptr_util.h"
|
| -#include "device/vibration/vibration_manager_impl.h"
|
| -#include "mojo/public/cpp/bindings/strong_binding.h"
|
| -
|
| -namespace device {
|
| -
|
| -int64_t VibrationManagerImpl::milli_seconds_for_testing_ = -1;
|
| -bool VibrationManagerImpl::cancelled_for_testing_ = false;
|
| -
|
| -namespace {
|
| -
|
| -class VibrationManagerEmptyImpl : public mojom::VibrationManager {
|
| - public:
|
| - VibrationManagerEmptyImpl() {}
|
| - ~VibrationManagerEmptyImpl() override {}
|
| -
|
| - void Vibrate(int64_t milliseconds, const VibrateCallback& callback) override {
|
| - VibrationManagerImpl::milli_seconds_for_testing_ = milliseconds;
|
| - callback.Run();
|
| - }
|
| -
|
| - void Cancel(const CancelCallback& callback) override {
|
| - VibrationManagerImpl::cancelled_for_testing_ = true;
|
| - callback.Run();
|
| - }
|
| -};
|
| -
|
| -} // namespace
|
| -
|
| -// static
|
| -void VibrationManagerImpl::Create(mojom::VibrationManagerRequest request) {
|
| - mojo::MakeStrongBinding(base::MakeUnique<VibrationManagerEmptyImpl>(),
|
| - std::move(request));
|
| -}
|
| -
|
| -} // namespace device
|
|
|