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

Unified Diff: media/capture/video/linux/camera_facing_chromeos.cc

Issue 2621693003: Convert camera vid and pid to lower case (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/video/linux/camera_facing_chromeos.cc
diff --git a/media/capture/video/linux/camera_facing_chromeos.cc b/media/capture/video/linux/camera_facing_chromeos.cc
index c8aedbd59f777803f559a37b4cda03eff330a8f3..ad633d8dc524a31a3106d59f1c318d83dd3ad824 100644
--- a/media/capture/video/linux/camera_facing_chromeos.cc
+++ b/media/capture/video/linux/camera_facing_chromeos.cc
@@ -170,7 +170,10 @@ void CameraFacingChromeOS::InitializeDeviceInfo(
DLOG(ERROR) << "model_id is empty";
continue;
}
- model_id_to_camera_id_[value.as_string()] = camera_id;
+ std::string model_id = value.as_string();
+ std::transform(model_id.begin(), model_id.end(), model_id.begin(),
+ ::tolower);
+ model_id_to_camera_id_[model_id] = camera_id;
} else if (sub_keys.size() == 3 && sub_keys[2] == kUsbPath) {
if (value.empty()) {
DLOG(ERROR) << "usb_path is empty";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698