|
permissions: remove PermissionQueueController and introduce PermissionInfoBarManager
Queue controller is a class which is almost 6 years old and its age is
starting to show. It uses all sorts of interesting hacks to tie request
lifecycles to the lifecycle of a web contents.
Moreover, coallescing permissions would be a nightmare since the request
id is compared and all sorts of strange checks are used to compare
request
equality.
Instead of all the craziness, just rewrite the controller to be a
version
of bubble manager for infobars. This leads to far simpler code as the
manager as a whole is tied to a web contents so we get lifecycle
management
for free!
Furthermore, we also have multiple permisisons managed and coallesced
for when it is implemented.
This CL is also a part of a group of CLs:
(1) https://codereview.chromium.org/1332293002
(2) https://codereview.chromium.org/1337903002 (this)
(3) https://codereview.chromium.org/1332063003
BUG= 516626
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+697 lines, -705 lines) |
Patch |
 |
M |
AUTHORS
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/geolocation/geolocation_permission_context_android.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/geolocation/geolocation_permission_context_unittest.cc
|
View
|
|
12 chunks |
+62 lines, -19 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/media_stream_device_permission_context_unittest.cc
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/media/midi_permission_context_unittest.cc
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/permissions/permission_context_base.h
|
View
|
|
2 chunks |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/permissions/permission_context_base.cc
|
View
|
|
6 chunks |
+16 lines, -23 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/permissions/permission_context_base_unittest.cc
|
View
|
1
|
8 chunks |
+31 lines, -20 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/permissions/permission_infobar_manager.h
|
View
|
|
1 chunk |
+85 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/permissions/permission_infobar_manager.cc
|
View
|
|
1 chunk |
+119 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/permissions/permission_infobar_request.h
|
View
|
|
1 chunk |
+114 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/permissions/permission_infobar_request.cc
|
View
|
|
1 chunk |
+247 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/permissions/permission_manager.h
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/permissions/permission_manager.cc
|
View
|
|
4 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/permissions/permission_queue_controller.h
|
View
|
|
1 chunk |
+0 lines, -96 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/permissions/permission_queue_controller.cc
|
View
|
|
1 chunk |
+0 lines, -413 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/permissions/permission_queue_controller_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -115 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/tab_helpers.cc
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
Total messages: 5 (2 generated)
|