Index: device/generic_sensor/sensor_provider_impl.cc |
diff --git a/device/generic_sensor/sensor_provider_impl.cc b/device/generic_sensor/sensor_provider_impl.cc |
index c7a2dfa8c74d56dc2b044aa5351f5aa487c31b4b..3e78e3a174fa6935ad799d53e38f38b4eebc0439 100644 |
--- a/device/generic_sensor/sensor_provider_impl.cc |
+++ b/device/generic_sensor/sensor_provider_impl.cc |
@@ -6,13 +6,11 @@ |
#include <utility> |
-#include "base/feature_list.h" |
#include "base/memory/ptr_util.h" |
#include "base/threading/thread_task_runner_handle.h" |
#include "device/generic_sensor/platform_sensor_provider.h" |
#include "device/generic_sensor/sensor_impl.h" |
#include "mojo/public/cpp/bindings/strong_binding.h" |
-#include "services/device/public/cpp/device_features.h" |
namespace device { |
@@ -56,17 +54,6 @@ |
void SensorProviderImpl::GetSensor(mojom::SensorType type, |
mojom::SensorRequest sensor_request, |
GetSensorCallback callback) { |
- // TODO(juncai): remove when the GenericSensor feature goes stable. |
- // For sensors that are used by DeviceMotionEvent, don't check the |
- // features::kGenericSensor flag. |
- if (!base::FeatureList::IsEnabled(features::kGenericSensor) && |
- !(type == mojom::SensorType::ACCELEROMETER || |
- type == mojom::SensorType::LINEAR_ACCELERATION || |
- type == mojom::SensorType::GYROSCOPE)) { |
- NotifySensorCreated(nullptr, nullptr, std::move(callback)); |
- return; |
- } |
- |
auto cloned_handle = provider_->CloneSharedBufferHandle(); |
if (!cloned_handle.is_valid()) { |
NotifySensorCreated(nullptr, nullptr, std::move(callback)); |