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

Side by Side Diff: device/generic_sensor/platform_sensor_provider_linux.cc

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/generic_sensor/platform_sensor_provider_linux.h" 5 #include "device/generic_sensor/platform_sensor_provider_linux.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "base/message_loop/message_loop.h"
8 #include "base/task_runner_util.h" 9 #include "base/task_runner_util.h"
9 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
10 #include "device/generic_sensor/linux/sensor_data_linux.h" 11 #include "device/generic_sensor/linux/sensor_data_linux.h"
11 #include "device/generic_sensor/platform_sensor_linux.h" 12 #include "device/generic_sensor/platform_sensor_linux.h"
12 #include "device/generic_sensor/platform_sensor_reader_linux.h" 13 #include "device/generic_sensor/platform_sensor_reader_linux.h"
13 14
14 namespace device { 15 namespace device {
15 16
16 // static 17 // static
17 PlatformSensorProviderLinux* PlatformSensorProviderLinux::GetInstance() { 18 PlatformSensorProviderLinux* PlatformSensorProviderLinux::GetInstance() {
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 mojom::SensorType type, 205 mojom::SensorType type,
205 const std::string& device_node) { 206 const std::string& device_node) {
206 DCHECK(CalledOnValidThread()); 207 DCHECK(CalledOnValidThread());
207 auto it = sensor_devices_by_type_.find(type); 208 auto it = sensor_devices_by_type_.find(type);
208 if (it != sensor_devices_by_type_.end() && 209 if (it != sensor_devices_by_type_.end() &&
209 it->second->device_node == device_node) 210 it->second->device_node == device_node)
210 sensor_devices_by_type_.erase(it); 211 sensor_devices_by_type_.erase(it);
211 } 212 }
212 213
213 } // namespace device 214 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698