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

Unified Diff: device/generic_sensor/platform_sensor_provider_linux.cc

Issue 2560263002: [sensors](CrOS/Linux) Rename SensorDeviceManager cc and h files. (Closed)
Patch Set: Created 4 years 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 | « device/generic_sensor/platform_sensor_provider_linux.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/generic_sensor/platform_sensor_provider_linux.cc
diff --git a/device/generic_sensor/platform_sensor_provider_linux.cc b/device/generic_sensor/platform_sensor_provider_linux.cc
index 6451fa3029d8957d0cec7bca898811a8a3d976a1..736c82ff55ab9dbfbf79dc45af2c28867d78915f 100644
--- a/device/generic_sensor/platform_sensor_provider_linux.cc
+++ b/device/generic_sensor/platform_sensor_provider_linux.cc
@@ -202,7 +202,7 @@ void PlatformSensorProviderLinux::OnDeviceRemoved(
const std::string& device_node) {
DCHECK(CalledOnValidThread());
auto it = sensor_devices_by_type_.find(type);
- if (it == sensor_devices_by_type_.end() &&
+ if (it != sensor_devices_by_type_.end() &&
it->second->device_node == device_node)
sensor_devices_by_type_.erase(it);
}
« no previous file with comments | « device/generic_sensor/platform_sensor_provider_linux.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698