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

Issue 12843009: Replace screen capture confirmation infobar with a message box. (Closed)

Created:
7 years, 9 months ago by Sergey Ulanov
Modified:
7 years, 9 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Replace screen capture confirmation infobar with a message box. Currently an infobar is used to get user consent for screen capture API. We are moving away from infobars for that API. The plan is to use modal prompt instead of infobars (but eventually they may be replaced with something better). This CL adds ScreenCaptureConfirmationUI interface, so that it will be easy to replace infobars. The new ScreenCaptureConfirmationUIInfobar implements this interface using infobars (will be removed eventually). BUG=196287 TBR=thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190149

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 9

Patch Set 9 : #

Patch Set 10 : #

Total comments: 4

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -187 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/media/media_capture_devices_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/media/media_capture_devices_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +62 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -13 lines 0 comments Download
D chrome/browser/ui/screen_capture_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -49 lines 0 comments Download
D chrome/browser/ui/screen_capture_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -119 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
Sergey Ulanov
pkasting@ - please review changes in chrome/browser/ui tommi@ - please review changes in chrome/browser/media
7 years, 9 months ago (2013-03-20 01:40:49 UTC) #1
Sergey Ulanov
https://codereview.chromium.org/12843009/diff/1/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/12843009/diff/1/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode125 chrome/browser/media/media_capture_devices_dispatcher.cc:125: // Deny request automatically in the following cases: Please ...
7 years, 9 months ago (2013-03-20 01:43:20 UTC) #2
Sergey Ulanov
pkasting, tommi: ping
7 years, 9 months ago (2013-03-21 06:53:38 UTC) #3
Peter Kasting
On 2013/03/21 06:53:38, sergeyu wrote: > pkasting, tommi: ping I saw the change, unfortunately I'm ...
7 years, 9 months ago (2013-03-21 06:57:43 UTC) #4
tommi (sloooow) - chröme
lgtm for chrome/browser/media
7 years, 9 months ago (2013-03-21 14:13:03 UTC) #5
Greg Spencer (Chromium)
https://codereview.chromium.org/12843009/diff/1/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/12843009/diff/1/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode301 chrome/browser/media/media_capture_devices_dispatcher.cc:301: LOG(ERROR) << "RESET"; Don't forget to remove this debugging ...
7 years, 9 months ago (2013-03-21 18:53:50 UTC) #6
Sergey Ulanov
https://codereview.chromium.org/12843009/diff/1/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/12843009/diff/1/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode301 chrome/browser/media/media_capture_devices_dispatcher.cc:301: LOG(ERROR) << "RESET"; On 2013/03/21 18:53:50, Greg Spencer (Chromium) ...
7 years, 9 months ago (2013-03-21 19:02:08 UTC) #7
Sergey Ulanov
On 2013/03/21 06:57:43, Peter Kasting wrote: > On 2013/03/21 06:53:38, sergeyu wrote: > > pkasting, ...
7 years, 9 months ago (2013-03-21 19:07:42 UTC) #8
Greg Spencer (Chromium)
https://codereview.chromium.org/12843009/diff/9001/chrome/browser/ui/screen_capture_confirmation_ui.h File chrome/browser/ui/screen_capture_confirmation_ui.h (right): https://codereview.chromium.org/12843009/diff/9001/chrome/browser/ui/screen_capture_confirmation_ui.h#newcode30 chrome/browser/ui/screen_capture_confirmation_ui.h:30: const string16& title) = 0; Maybe use "application_name" instead ...
7 years, 9 months ago (2013-03-21 21:44:24 UTC) #9
Sergey Ulanov
https://codereview.chromium.org/12843009/diff/9001/chrome/browser/ui/screen_capture_confirmation_ui.h File chrome/browser/ui/screen_capture_confirmation_ui.h (right): https://codereview.chromium.org/12843009/diff/9001/chrome/browser/ui/screen_capture_confirmation_ui.h#newcode30 chrome/browser/ui/screen_capture_confirmation_ui.h:30: const string16& title) = 0; On 2013/03/21 21:44:24, Greg ...
7 years, 9 months ago (2013-03-21 22:53:04 UTC) #10
Sergey Ulanov
+thakis
7 years, 9 months ago (2013-03-22 17:43:59 UTC) #11
Nico
I'm concerned about the short-term hack below. Is it possible to find a general solution ...
7 years, 9 months ago (2013-03-22 18:02:52 UTC) #12
Sergey Ulanov
https://codereview.chromium.org/12843009/diff/17001/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/12843009/diff/17001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode47 chrome/browser/media/media_capture_devices_dispatcher.cc:47: // TODO(sergeyu): Remove this whitelist as soon as possible. ...
7 years, 9 months ago (2013-03-22 18:23:03 UTC) #13
Nico
On 2013/03/22 18:23:03, sergeyu wrote: > https://codereview.chromium.org/12843009/diff/17001/chrome/browser/media/media_capture_devices_dispatcher.cc > File chrome/browser/media/media_capture_devices_dispatcher.cc (right): > > https://codereview.chromium.org/12843009/diff/17001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode47 > ...
7 years, 9 months ago (2013-03-22 18:39:44 UTC) #14
Nico
https://codereview.chromium.org/12843009/diff/17001/chrome/browser/ui/screen_capture_confirmation_ui_infobar.cc File chrome/browser/ui/screen_capture_confirmation_ui_infobar.cc (right): https://codereview.chromium.org/12843009/diff/17001/chrome/browser/ui/screen_capture_confirmation_ui_infobar.cc#newcode13 chrome/browser/ui/screen_capture_confirmation_ui_infobar.cc:13: : infobar_service_(InfoBarService::FromWebContents(web_contents)), nit: indent 2 more
7 years, 9 months ago (2013-03-22 18:39:55 UTC) #15
Sergey Ulanov
https://codereview.chromium.org/12843009/diff/17001/chrome/browser/ui/screen_capture_confirmation_ui_infobar.cc File chrome/browser/ui/screen_capture_confirmation_ui_infobar.cc (right): https://codereview.chromium.org/12843009/diff/17001/chrome/browser/ui/screen_capture_confirmation_ui_infobar.cc#newcode13 chrome/browser/ui/screen_capture_confirmation_ui_infobar.cc:13: : infobar_service_(InfoBarService::FromWebContents(web_contents)), On 2013/03/22 18:39:55, Nico wrote: > nit: ...
7 years, 9 months ago (2013-03-22 19:25:46 UTC) #16
Sergey Ulanov
On Fri, Mar 22, 2013 at 11:39 AM, <thakis@chromium.org> wrote: > On 2013/03/22 18:23:03, sergeyu ...
7 years, 9 months ago (2013-03-22 19:32:10 UTC) #17
Nico
> Thanks, I did know about it - will keep Finch in mind next time. ...
7 years, 9 months ago (2013-03-22 20:17:41 UTC) #18
Sergey Ulanov
On 2013/03/22 20:17:41, Nico wrote: > > Thanks, I did know about it - will ...
7 years, 9 months ago (2013-03-22 20:49:21 UTC) #19
Peter Kasting
Does this change actually do anything functional? It looks like it's just adding layers of ...
7 years, 9 months ago (2013-03-22 21:00:20 UTC) #20
Sergey Ulanov
On 2013/03/22 21:00:20, Peter Kasting wrote: > Does this change actually do anything functional? It ...
7 years, 9 months ago (2013-03-22 22:10:05 UTC) #21
Peter Kasting
Much improved! https://codereview.chromium.org/12843009/diff/39001/chrome/browser/ui/screen_capture_confirmation_dialog.cc File chrome/browser/ui/screen_capture_confirmation_dialog.cc (right): https://codereview.chromium.org/12843009/diff/39001/chrome/browser/ui/screen_capture_confirmation_dialog.cc#newcode24 chrome/browser/ui/screen_capture_confirmation_dialog.cc:24: application_name_ = application_name; If you pass these ...
7 years, 9 months ago (2013-03-22 22:48:30 UTC) #22
Sergey Ulanov
https://codereview.chromium.org/12843009/diff/39001/chrome/browser/ui/screen_capture_confirmation_dialog.cc File chrome/browser/ui/screen_capture_confirmation_dialog.cc (right): https://codereview.chromium.org/12843009/diff/39001/chrome/browser/ui/screen_capture_confirmation_dialog.cc#newcode24 chrome/browser/ui/screen_capture_confirmation_dialog.cc:24: application_name_ = application_name; On 2013/03/22 22:48:30, Peter Kasting wrote: ...
7 years, 9 months ago (2013-03-22 23:26:09 UTC) #23
Peter Kasting
On 2013/03/22 23:26:09, sergeyu wrote: > I don't think we want to use ShowMessageBox() in ...
7 years, 9 months ago (2013-03-22 23:47:27 UTC) #24
Sergey Ulanov
On 2013/03/22 23:47:27, Peter Kasting wrote: > On 2013/03/22 23:26:09, sergeyu wrote: > > I ...
7 years, 9 months ago (2013-03-23 00:29:53 UTC) #25
Peter Kasting
LGTM save seemingly-unnecessary declaration in the indicator .h https://codereview.chromium.org/12843009/diff/57001/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/12843009/diff/57001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode123 chrome/browser/media/media_capture_devices_dispatcher.cc:123: if ...
7 years, 9 months ago (2013-03-23 01:25:54 UTC) #26
Sergey Ulanov
https://codereview.chromium.org/12843009/diff/57001/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/12843009/diff/57001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode123 chrome/browser/media/media_capture_devices_dispatcher.cc:123: if (request.video_type == content::MEDIA_SCREEN_VIDEO_CAPTURE) { On 2013/03/23 01:25:54, Peter ...
7 years, 9 months ago (2013-03-23 01:43:37 UTC) #27
Peter Kasting
https://codereview.chromium.org/12843009/diff/57001/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/12843009/diff/57001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode148 chrome/browser/media/media_capture_devices_dispatcher.cc:148: if (result == chrome::MESSAGE_BOX_RESULT_YES) { On 2013/03/23 01:43:38, sergeyu ...
7 years, 9 months ago (2013-03-23 01:46:17 UTC) #28
Sergey Ulanov
On 2013/03/23 01:46:17, Peter Kasting wrote: > https://codereview.chromium.org/12843009/diff/57001/chrome/browser/media/media_capture_devices_dispatcher.cc > File chrome/browser/media/media_capture_devices_dispatcher.cc (right): > > https://codereview.chromium.org/12843009/diff/57001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode148 ...
7 years, 9 months ago (2013-03-23 19:03:52 UTC) #29
Peter Kasting
Cool, still LGTM https://codereview.chromium.org/12843009/diff/76001/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/12843009/diff/76001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode131 chrome/browser/media/media_capture_devices_dispatcher.cc:131: bool screen_capture_enabled = CommandLine::ForCurrentProcess()->HasSwitch( Nit: Just ...
7 years, 9 months ago (2013-03-23 19:08:40 UTC) #30
Sergey Ulanov
https://codereview.chromium.org/12843009/diff/76001/chrome/browser/media/media_capture_devices_dispatcher.cc File chrome/browser/media/media_capture_devices_dispatcher.cc (right): https://codereview.chromium.org/12843009/diff/76001/chrome/browser/media/media_capture_devices_dispatcher.cc#newcode131 chrome/browser/media/media_capture_devices_dispatcher.cc:131: bool screen_capture_enabled = CommandLine::ForCurrentProcess()->HasSwitch( On 2013/03/23 19:08:40, Peter Kasting ...
7 years, 9 months ago (2013-03-23 19:16:05 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/12843009/7002
7 years, 9 months ago (2013-03-23 19:17:14 UTC) #32
commit-bot: I haz the power
Presubmit check for 12843009-7002 failed and returned exit status 1. INFO:root:Found 5 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-23 19:17:18 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergeyu@chromium.org/12843009/7002
7 years, 9 months ago (2013-03-23 19:39:41 UTC) #34
Nico
gypi lgtm
7 years, 9 months ago (2013-03-23 20:39:35 UTC) #35
commit-bot: I haz the power
7 years, 9 months ago (2013-03-24 03:12:31 UTC) #36
Message was sent while issue was closed.
Change committed as 190149

Powered by Google App Engine
This is Rietveld 408576698