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

Issue 2703393007: Show meaningful name for cameras (Closed)

Created:
3 years, 10 months ago by shenghao
Modified:
3 years, 9 months ago
CC:
chfremer+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, posciak+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show meaningful name for cameras The camera names in settings are composed by display_name + model_id. When there are front and back cameras, the user can not tell which is which by the model ID. After this change, it shows display_name + model_id + facing_info BUG=chrome-os-partner:62956 TEST=Verify that display_name + model_id + facing_info shows in settings Review-Url: https://codereview.chromium.org/2703393007 Cr-Commit-Position: refs/heads/master@{#454531} Committed: https://chromium.googlesource.com/chromium/src/+/75a64969dd5f72c9ff2fff22fd3638a95fe800fe

Patch Set 1 #

Total comments: 7

Patch Set 2 : Moved strings to extensions #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : Moved to chrome/browser/ui/webui/ #

Total comments: 15

Patch Set 5 : addressed comments #

Total comments: 2

Patch Set 6 : Add comments #

Patch Set 7 : Moved logic behind ENABLE_EXTENSIONS flag #

Patch Set 8 : fix trybot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -7 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/media_devices_selection_handler.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/media_devices_selection_handler.cc View 1 2 3 4 5 6 3 chunks +31 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/settings_media_devices_selection_handler.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/settings_media_devices_selection_handler.cc View 1 2 3 4 5 6 3 chunks +31 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/common/media/media_devices.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/media/media_devices.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -4 lines 0 comments Download
M extensions/strings/extensions_strings.grd View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (16 generated)
shenghao
3 years, 10 months ago (2017-02-22 03:15:19 UTC) #2
mtomasz
https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_capture_device_descriptor.cc File media/capture/video/video_capture_device_descriptor.cc (right): https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_capture_device_descriptor.cc#newcode108 media/capture/video/video_capture_device_descriptor.cc:108: return GetNameAndModel() + " (" + facing_info + ")"; ...
3 years, 10 months ago (2017-02-22 03:20:37 UTC) #4
tommi (sloooow) - chröme
https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_capture_device_descriptor.cc File media/capture/video/video_capture_device_descriptor.cc (right): https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_capture_device_descriptor.cc#newcode108 media/capture/video/video_capture_device_descriptor.cc:108: return GetNameAndModel() + " (" + facing_info + ")"; ...
3 years, 10 months ago (2017-02-22 10:41:04 UTC) #5
shenghao
On 2017/02/22 10:41:04, tommi (krómíum) wrote: > https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_capture_device_descriptor.cc > File media/capture/video/video_capture_device_descriptor.cc (right): > > https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_capture_device_descriptor.cc#newcode108 ...
3 years, 10 months ago (2017-02-22 18:44:23 UTC) #6
tommi (sloooow) - chröme
On 2017/02/22 18:44:23, shenghao wrote: > On 2017/02/22 10:41:04, tommi (krómíum) wrote: > > > ...
3 years, 10 months ago (2017-02-22 18:46:39 UTC) #7
mcasas
drive by https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_capture_device_descriptor.cc File media/capture/video/video_capture_device_descriptor.cc (right): https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_capture_device_descriptor.cc#newcode12 media/capture/video/video_capture_device_descriptor.cc:12: "", "user-facing", "world-facing"}; nit: move the anonymous ...
3 years, 10 months ago (2017-02-22 19:03:59 UTC) #9
shenghao
https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_capture_device_descriptor.cc File media/capture/video/video_capture_device_descriptor.cc (right): https://codereview.chromium.org/2703393007/diff/1/media/capture/video/video_capture_device_descriptor.cc#newcode12 media/capture/video/video_capture_device_descriptor.cc:12: "", "user-facing", "world-facing"}; On 2017/02/22 19:03:59, mcasas wrote: > ...
3 years, 10 months ago (2017-02-24 01:11:39 UTC) #10
mtomasz
https://codereview.chromium.org/2703393007/diff/40001/media/capture/video/DEPS File media/capture/video/DEPS (right): https://codereview.chromium.org/2703393007/diff/40001/media/capture/video/DEPS#newcode2 media/capture/video/DEPS:2: "+extensions/strings/grit/extensions_strings.h", This dependency looks bad. Media shouldn't depend on ...
3 years, 9 months ago (2017-02-27 01:27:36 UTC) #13
shenghao
On 2017/02/27 01:27:36, mtomasz wrote: > https://codereview.chromium.org/2703393007/diff/40001/media/capture/video/DEPS > File media/capture/video/DEPS (right): > > https://codereview.chromium.org/2703393007/diff/40001/media/capture/video/DEPS#newcode2 > ...
3 years, 9 months ago (2017-03-01 09:49:16 UTC) #14
Ken Rockot(use gerrit already)
I'm assuming you want me to review //extensions, in which case, rs lgtm
3 years, 9 months ago (2017-03-01 17:48:04 UTC) #15
shenghao
https://codereview.chromium.org/2703393007/diff/40001/media/capture/video/DEPS File media/capture/video/DEPS (right): https://codereview.chromium.org/2703393007/diff/40001/media/capture/video/DEPS#newcode2 media/capture/video/DEPS:2: "+extensions/strings/grit/extensions_strings.h", On 2017/02/27 01:27:36, mtomasz wrote: > This dependency ...
3 years, 9 months ago (2017-03-02 07:20:13 UTC) #17
mtomasz
lgtm with nits, thanks! https://codereview.chromium.org/2703393007/diff/60001/chrome/browser/ui/webui/options/media_devices_selection_handler.cc File chrome/browser/ui/webui/options/media_devices_selection_handler.cc (right): https://codereview.chromium.org/2703393007/diff/60001/chrome/browser/ui/webui/options/media_devices_selection_handler.cc#newcode148 chrome/browser/ui/webui/options/media_devices_selection_handler.cc:148: case media::VideoFacingMode::NUM_MEDIA_VIDEO_FACING_MODES: nit: Add NOTREACHED()? ...
3 years, 9 months ago (2017-03-02 07:49:54 UTC) #18
shenghao
https://codereview.chromium.org/2703393007/diff/60001/chrome/browser/ui/webui/options/media_devices_selection_handler.cc File chrome/browser/ui/webui/options/media_devices_selection_handler.cc (right): https://codereview.chromium.org/2703393007/diff/60001/chrome/browser/ui/webui/options/media_devices_selection_handler.cc#newcode148 chrome/browser/ui/webui/options/media_devices_selection_handler.cc:148: case media::VideoFacingMode::NUM_MEDIA_VIDEO_FACING_MODES: On 2017/03/02 07:49:53, mtomasz wrote: > nit: ...
3 years, 9 months ago (2017-03-02 12:43:41 UTC) #19
Dan Beam
lgtm https://codereview.chromium.org/2703393007/diff/80001/chrome/browser/ui/webui/options/media_devices_selection_handler.h File chrome/browser/ui/webui/options/media_devices_selection_handler.h (right): https://codereview.chromium.org/2703393007/diff/80001/chrome/browser/ui/webui/options/media_devices_selection_handler.h#newcode49 chrome/browser/ui/webui/options/media_devices_selection_handler.h:49: doc comment (and in duplicate /settings/ version)
3 years, 9 months ago (2017-03-03 02:14:25 UTC) #20
shenghao
https://codereview.chromium.org/2703393007/diff/80001/chrome/browser/ui/webui/options/media_devices_selection_handler.h File chrome/browser/ui/webui/options/media_devices_selection_handler.h (right): https://codereview.chromium.org/2703393007/diff/80001/chrome/browser/ui/webui/options/media_devices_selection_handler.h#newcode49 chrome/browser/ui/webui/options/media_devices_selection_handler.h:49: On 2017/03/03 02:14:25, Dan Beam wrote: > doc comment ...
3 years, 9 months ago (2017-03-03 02:25:11 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2703393007/100001
3 years, 9 months ago (2017-03-03 02:25:24 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/221672) android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 9 months ago (2017-03-03 02:30:17 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2703393007/120001
3 years, 9 months ago (2017-03-03 03:41:28 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/26118)
3 years, 9 months ago (2017-03-03 04:09:29 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2703393007/140001
3 years, 9 months ago (2017-03-03 05:37:29 UTC) #34
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 06:38:06 UTC) #37
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/75a64969dd5f72c9ff2fff22fd36...

Powered by Google App Engine
This is Rietveld 408576698