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

Issue 378273003: Add command-line flag for tests to bypass the screenshare window picker. (Closed)

Created:
6 years, 5 months ago by phoglund_chromium
Modified:
6 years, 4 months ago
Reviewers:
jiayl, Peter Kasting
CC:
chromium-reviews, tfarina
Project:
chromium
Visibility:
Public.

Description

Add command-line flag for tests to bypass the screenshare window picker. This flag will make it possible for external tests to bypass the dialog where you select what to screen share. When this flag is passed on startup and an extension asks to use the desktop capture API, it will auto-bypass the dialogue if the target shows up in window picker. This is assumed to be safe because the flag would have to be passed each time Chrome is started up, rather than being an about:flags flag. BUG=392425 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290249

Patch Set 1 #

Total comments: 2

Patch Set 2 : Using PostTask and weak pointers instead #

Total comments: 10

Patch Set 3 : Removing AutoSelectTask, inlining ShouldSelectSource #

Patch Set 4 : Rebased #

Patch Set 5 : Rebased again #

Patch Set 6 : Fixing merge error (?) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -1 line) Patch
M chrome/browser/ui/views/desktop_media_picker_views.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/desktop_media_picker_views.cc View 1 2 3 4 5 4 chunks +24 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
phoglund_chromium
6 years, 5 months ago (2014-07-09 11:31:22 UTC) #1
jiayl
https://codereview.chromium.org/378273003/diff/1/chrome/browser/ui/views/desktop_media_picker_views.cc File chrome/browser/ui/views/desktop_media_picker_views.cc (right): https://codereview.chromium.org/378273003/diff/1/chrome/browser/ui/views/desktop_media_picker_views.cc#newcode498 chrome/browser/ui/views/desktop_media_picker_views.cc:498: if (ShouldAutoSelectSource(source)) { It's not safe to do these ...
6 years, 5 months ago (2014-07-09 17:02:34 UTC) #2
msw
Do this with a test-specific API instead of a command-line flag; flags are generally not ...
6 years, 5 months ago (2014-07-09 17:03:10 UTC) #3
phoglund_chromium
https://codereview.chromium.org/378273003/diff/1/chrome/browser/ui/views/desktop_media_picker_views.cc File chrome/browser/ui/views/desktop_media_picker_views.cc (right): https://codereview.chromium.org/378273003/diff/1/chrome/browser/ui/views/desktop_media_picker_views.cc#newcode498 chrome/browser/ui/views/desktop_media_picker_views.cc:498: if (ShouldAutoSelectSource(source)) { On 2014/07/09 17:02:34, jiayl wrote: > ...
6 years, 4 months ago (2014-08-04 12:37:25 UTC) #4
jiayl
On 2014/08/04 12:37:25, phoglund wrote: > https://codereview.chromium.org/378273003/diff/1/chrome/browser/ui/views/desktop_media_picker_views.cc > File chrome/browser/ui/views/desktop_media_picker_views.cc (right): > > https://codereview.chromium.org/378273003/diff/1/chrome/browser/ui/views/desktop_media_picker_views.cc#newcode498 > ...
6 years, 4 months ago (2014-08-07 15:18:10 UTC) #5
phoglund_chromium
Ok jiayl, I tried rewriting this using PostTask instead. Please review, and bear in mind ...
6 years, 4 months ago (2014-08-12 13:11:33 UTC) #6
phoglund_chromium
pkasting: review/owner stamp for the UI parts. Note that there's a fair amount of discussion ...
6 years, 4 months ago (2014-08-12 13:26:51 UTC) #7
Peter Kasting
On 2014/08/12 13:26:51, phoglund wrote: > Note that there's a fair amount of discussion in ...
6 years, 4 months ago (2014-08-12 17:48:11 UTC) #8
Peter Kasting
LGTM https://codereview.chromium.org/378273003/diff/20001/chrome/browser/ui/views/desktop_media_picker_views.cc File chrome/browser/ui/views/desktop_media_picker_views.cc (right): https://codereview.chromium.org/378273003/diff/20001/chrome/browser/ui/views/desktop_media_picker_views.cc#newcode66 chrome/browser/ui/views/desktop_media_picker_views.cc:66: static bool ShouldAutoSelectSource(const DesktopMediaList::Source& source) { Nit: "static" ...
6 years, 4 months ago (2014-08-13 17:17:51 UTC) #9
jiayl
https://codereview.chromium.org/378273003/diff/20001/chrome/browser/ui/views/desktop_media_picker_views.cc File chrome/browser/ui/views/desktop_media_picker_views.cc (right): https://codereview.chromium.org/378273003/diff/20001/chrome/browser/ui/views/desktop_media_picker_views.cc#newcode361 chrome/browser/ui/views/desktop_media_picker_views.cc:361: base::Bind(&AutoSelectTask::AcceptSelectedSource, task)); AutoSelectTask is not needed. You can just ...
6 years, 4 months ago (2014-08-13 17:32:43 UTC) #10
Peter Kasting
On 2014/08/13 17:32:43, jiayl wrote: > https://codereview.chromium.org/378273003/diff/20001/chrome/browser/ui/views/desktop_media_picker_views.cc > File chrome/browser/ui/views/desktop_media_picker_views.cc (right): > > https://codereview.chromium.org/378273003/diff/20001/chrome/browser/ui/views/desktop_media_picker_views.cc#newcode361 > ...
6 years, 4 months ago (2014-08-13 17:34:31 UTC) #11
phoglund_chromium
PTAL https://codereview.chromium.org/378273003/diff/20001/chrome/browser/ui/views/desktop_media_picker_views.cc File chrome/browser/ui/views/desktop_media_picker_views.cc (right): https://codereview.chromium.org/378273003/diff/20001/chrome/browser/ui/views/desktop_media_picker_views.cc#newcode66 chrome/browser/ui/views/desktop_media_picker_views.cc:66: static bool ShouldAutoSelectSource(const DesktopMediaList::Source& source) { On 2014/08/13 ...
6 years, 4 months ago (2014-08-14 13:16:24 UTC) #12
jiayl
lgtm
6 years, 4 months ago (2014-08-14 17:02:57 UTC) #13
phoglund_chromium
pkasting, will assume here you're happy with the changes. If not, please accept my apologies ...
6 years, 4 months ago (2014-08-15 11:34:03 UTC) #14
phoglund_chromium
The CQ bit was checked by phoglund@chromium.org
6 years, 4 months ago (2014-08-15 11:34:10 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phoglund@chromium.org/378273003/40001
6 years, 4 months ago (2014-08-15 11:35:35 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-15 11:44:57 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-15 11:46:51 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/42246) ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/6004) ios_rel_device ...
6 years, 4 months ago (2014-08-15 11:46:53 UTC) #19
phoglund_chromium
The CQ bit was checked by phoglund@chromium.org
6 years, 4 months ago (2014-08-15 13:50:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phoglund@chromium.org/378273003/60001
6 years, 4 months ago (2014-08-15 13:52:02 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-15 15:49:38 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-15 16:03:18 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/4700) win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/6301)
6 years, 4 months ago (2014-08-15 16:03:19 UTC) #24
phoglund_chromium
The CQ bit was checked by phoglund@chromium.org
6 years, 4 months ago (2014-08-18 12:09:43 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phoglund@chromium.org/378273003/80001
6 years, 4 months ago (2014-08-18 12:10:53 UTC) #26
phoglund_chromium
The CQ bit was unchecked by phoglund@chromium.org
6 years, 4 months ago (2014-08-18 12:25:14 UTC) #27
phoglund_chromium
The CQ bit was checked by phoglund@chromium.org
6 years, 4 months ago (2014-08-18 12:25:57 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phoglund@chromium.org/378273003/100001
6 years, 4 months ago (2014-08-18 12:26:54 UTC) #29
commit-bot: I haz the power
6 years, 4 months ago (2014-08-18 13:43:10 UTC) #30
Message was sent while issue was closed.
Committed patchset #6 (100001) as 290249

Powered by Google App Engine
This is Rietveld 408576698