Commit 1f8e11ba authored by henryhsu's avatar henryhsu Committed by Commit bot

Convert camera vid and pid to lower case

BUG=673210
TEST=open camera app and see the vid/pid is converted to lower case in
log

Review-Url: https://codereview.chromium.org/2621693003
Cr-Commit-Position: refs/heads/master@{#442823}
parent e2f14475
......@@ -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";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment