New issue
Advanced search Search tips

Issue 715361 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Consider not using unordered_map in camera_config_chromeos.h

Project Member Reported by mcasas@chromium.org, Apr 26 2017

Issue description

Because is discouraged in [1] for small sizes [2]


[1] https://chromium.googlesource.com/chromium/src/+/master/base/containers/README.md
[2] https://groups.google.com/a/chromium.org/forum/?utm_medium=email&utm_source=footer#!msg/chromium-dev/rdxOHKzQmRY/fgMJCEGxCgAJ

grep -rn unordered_map media/capture/
media/capture//video/linux/camera_config_chromeos.h:11:#include <unordered_map>
media/capture//video/linux/camera_config_chromeos.h:88:  std::unordered_map<int, VideoFacingMode> camera_id_to_facing_;
media/capture//video/linux/camera_config_chromeos.h:89:  std::unordered_map<int, int> camera_id_to_orientation_;
media/capture//video/linux/camera_config_chromeos.h:90:  std::unordered_map<std::string, int> usb_id_to_camera_id_;
media/capture//video/linux/camera_config_chromeos.h:91:  std::unordered_map<std::string, int> model_id_to_camera_id_;
 

Comment 1 by guidou@chromium.org, Apr 28 2017

Components: -Blink>GetUserMedia Blink>GetUserMedia>Webcam

Comment 2 by guidou@chromium.org, May 29 2017

Status: Available (was: Untriaged)
Project Member

Comment 3 by sheriffbot@chromium.org, May 29 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment