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

Issue 365123003: Implement midi permissions on top of the new common permission classes (Closed)

Created:
6 years, 5 months ago by Miguel Garcia
Modified:
6 years, 5 months ago
CC:
chromium-reviews, zea+watch_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, markusheintz_, wjia+watch_chromium.org, DaleCurtis, Greg Billock
Project:
chromium
Visibility:
Public.

Description

Implement midi permissions on top of the new common permission classes - move all the generic permission settings from gcm to content_settings - delete the midi implementation in favour of this one. Some important changes in midi. Clicking Yes/No on Bubbles did not save the permission for future uses, while when using infobars it was saved. Now it is saved in both cases The existing midi implementation had some renderer crashes that have now been fixed. It also had a browser race when tring to run the result callback. Both issues are fixed in this implementation. The midi cancel closure is not implemented, it does not seem to be used anywhere and the paradigm was a bit convoluted (passing it as an out pointer in RequestMidiSysExPermission) The old midi infobar used to say Allow/Deny but the bubble said Allow/Block, now it says Allow/Block in both cases. BUG=392145 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282003

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 22

Patch Set 4 : Initial review comments #

Total comments: 3

Patch Set 5 : #

Patch Set 6 : Minor tweak to the push message infobar #

Total comments: 10

Patch Set 7 : #

Patch Set 8 : fix windows warning #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -1142 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -3 lines 0 comments Download
A + chrome/browser/content_settings/permission_bubble_request_impl.h View 3 chunks +3 lines, -7 lines 0 comments Download
A + chrome/browser/content_settings/permission_bubble_request_impl.cc View 1 2 3 3 chunks +37 lines, -17 lines 0 comments Download
A + chrome/browser/content_settings/permission_context_base.h View 1 2 3 4 5 6 6 chunks +35 lines, -26 lines 0 comments Download
A + chrome/browser/content_settings/permission_context_base.cc View 1 2 3 4 5 6 7 5 chunks +74 lines, -78 lines 0 comments Download
A + chrome/browser/content_settings/permission_infobar_delegate.h View 1 2 3 4 5 6 3 chunks +9 lines, -11 lines 0 comments Download
A + chrome/browser/content_settings/permission_infobar_delegate.cc View 1 2 3 2 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/media/midi_permission_context.h View 1 1 chunk +6 lines, -75 lines 0 comments Download
M chrome/browser/media/midi_permission_context.cc View 1 2 3 4 5 6 2 chunks +5 lines, -286 lines 0 comments Download
M chrome/browser/media/midi_permission_infobar_delegate.h View 1 2 3 4 5 6 2 chunks +4 lines, -19 lines 0 comments Download
M chrome/browser/media/midi_permission_infobar_delegate.cc View 2 chunks +1 line, -45 lines 0 comments Download
D chrome/browser/services/gcm/permission_bubble_request_impl.h View 1 chunk +0 lines, -70 lines 0 comments Download
D chrome/browser/services/gcm/permission_bubble_request_impl.cc View 1 chunk +0 lines, -89 lines 0 comments Download
D chrome/browser/services/gcm/permission_context_base.h View 1 chunk +0 lines, -108 lines 0 comments Download
D chrome/browser/services/gcm/permission_context_base.cc View 1 chunk +0 lines, -176 lines 0 comments Download
D chrome/browser/services/gcm/permission_infobar_delegate.h View 1 chunk +0 lines, -49 lines 0 comments Download
D chrome/browser/services/gcm/permission_infobar_delegate.cc View 1 chunk +0 lines, -56 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_infobar_delegate.h View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_infobar_delegate.cc View 1 2 3 4 5 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_permission_context.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/media/midi_dispatcher.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
Miguel Garcia
Initial non owner review
6 years, 5 months ago (2014-07-03 18:10:54 UTC) #1
Miguel Garcia
Bernhard can you have a quick look a the content changes here? That way I ...
6 years, 5 months ago (2014-07-04 09:21:41 UTC) #2
Takashi Toyoshima
lgtm for midi Thanks!
6 years, 5 months ago (2014-07-04 09:37:56 UTC) #3
Bernhard Bauer
Mostly formatting nits: https://codereview.chromium.org/365123003/diff/40001/chrome/browser/content_settings/permission_bubble_request_impl.cc File chrome/browser/content_settings/permission_bubble_request_impl.cc (right): https://codereview.chromium.org/365123003/diff/40001/chrome/browser/content_settings/permission_bubble_request_impl.cc#newcode37 chrome/browser/content_settings/permission_bubble_request_impl.cc:37: icon_id = IDR_ALLOWED_MIDI_SYSEX; Directly return the ...
6 years, 5 months ago (2014-07-04 10:24:13 UTC) #4
Michael van Ouwerkerk
Nice! https://codereview.chromium.org/365123003/diff/40001/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://codereview.chromium.org/365123003/diff/40001/chrome/browser/content_settings/permission_context_base.cc#newcode49 chrome/browser/content_settings/permission_context_base.cc:49: web_contents->GetURL().GetOrigin(), Use GetLastCommittedURL as GetURL is deprecated and ...
6 years, 5 months ago (2014-07-04 10:34:32 UTC) #5
Miguel Garcia
https://codereview.chromium.org/365123003/diff/40001/chrome/browser/content_settings/permission_bubble_request_impl.cc File chrome/browser/content_settings/permission_bubble_request_impl.cc (right): https://codereview.chromium.org/365123003/diff/40001/chrome/browser/content_settings/permission_bubble_request_impl.cc#newcode37 chrome/browser/content_settings/permission_bubble_request_impl.cc:37: icon_id = IDR_ALLOWED_MIDI_SYSEX; On 2014/07/04 10:24:13, Bernhard Bauer wrote: ...
6 years, 5 months ago (2014-07-04 12:09:53 UTC) #6
Miguel Garcia
+fgorski for the gcm changes
6 years, 5 months ago (2014-07-04 12:10:40 UTC) #7
Michael van Ouwerkerk
lgtm with nit https://codereview.chromium.org/365123003/diff/60001/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://codereview.chromium.org/365123003/diff/60001/chrome/browser/content_settings/permission_context_base.cc#newcode162 chrome/browser/content_settings/permission_context_base.cc:162: DCHECK(requesting_origin == requesting_origin.GetOrigin()); Sorry I made ...
6 years, 5 months ago (2014-07-04 12:18:26 UTC) #8
Miguel Garcia
On 2014/07/04 12:18:26, Michael van Ouwerkerk wrote: > lgtm with nit > > https://codereview.chromium.org/365123003/diff/60001/chrome/browser/content_settings/permission_context_base.cc > ...
6 years, 5 months ago (2014-07-04 12:24:03 UTC) #9
Miguel Garcia
+dale for media owners
6 years, 5 months ago (2014-07-04 12:27:24 UTC) #10
Bernhard Bauer
content_settings/ LGTM On 2014/07/04 12:24:03, Miguel Garcia wrote: > On 2014/07/04 12:18:26, Michael van Ouwerkerk ...
6 years, 5 months ago (2014-07-04 12:34:51 UTC) #11
fgorski
gcm/ lgtm
6 years, 5 months ago (2014-07-07 18:19:00 UTC) #12
Miguel Garcia
Tommi, would you mind having a look? I need a rubber stamp lgtm for media ...
6 years, 5 months ago (2014-07-08 10:37:32 UTC) #13
tommi (sloooow) - chröme
only took a look at */media/* and those lgtm assuming the nits below will be ...
6 years, 5 months ago (2014-07-08 12:38:55 UTC) #14
Miguel Garcia
https://codereview.chromium.org/365123003/diff/100001/chrome/browser/media/midi_permission_context.cc File chrome/browser/media/midi_permission_context.cc (right): https://codereview.chromium.org/365123003/diff/100001/chrome/browser/media/midi_permission_context.cc#newcode12 chrome/browser/media/midi_permission_context.cc:12: : PermissionContextBase(profile, CONTENT_SETTINGS_TYPE_MIDI_SYSEX){ On 2014/07/08 12:38:54, tommi wrote: > ...
6 years, 5 months ago (2014-07-08 13:54:30 UTC) #15
Miguel Garcia
The CQ bit was checked by miguelg@chromium.org
6 years, 5 months ago (2014-07-08 13:54:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miguelg@chromium.org/365123003/120001
6 years, 5 months ago (2014-07-08 13:55:27 UTC) #17
Miguel Garcia
The CQ bit was unchecked by miguelg@chromium.org
6 years, 5 months ago (2014-07-08 15:19:04 UTC) #18
Miguel Garcia
The CQ bit was checked by miguelg@chromium.org
6 years, 5 months ago (2014-07-08 15:19:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miguelg@chromium.org/365123003/140001
6 years, 5 months ago (2014-07-08 15:19:57 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-08 20:07:59 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-08 23:14:43 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/46846)
6 years, 5 months ago (2014-07-08 23:14:44 UTC) #23
Miguel Garcia
The CQ bit was checked by miguelg@chromium.org
6 years, 5 months ago (2014-07-09 08:55:39 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miguelg@chromium.org/365123003/160001
6 years, 5 months ago (2014-07-09 08:56:17 UTC) #25
commit-bot: I haz the power
6 years, 5 months ago (2014-07-09 10:55:53 UTC) #26
Message was sent while issue was closed.
Change committed as 282003

Powered by Google App Engine
This is Rietveld 408576698