|
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
Total comments: 22
Total comments: 3
Total comments: 10
|
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
|
Total messages: 26 (0 generated)
|