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

Issue 150103013: Add basic coalescing behavior to the permission bubble manager. (Closed)

Created:
6 years, 10 months ago by leng
Modified:
6 years, 10 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add basic coalescing behavior to the permission bubble manager. The manager will now wait 400ms after it receives both a request and its view before showing a bubble. This allows permissions that are requested quickly in sequence to be shown together, in only one bubble. Permission requests that occur when there is already a bubble visible are queued and not shown until the current bubble disappears. This simple wait period is probably simpler than the final design, but is a good stepping stone toward a better algorithm. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251079

Patch Set 1 #

Total comments: 12

Patch Set 2 : feedback addressed #

Patch Set 3 : edited comment #

Total comments: 4

Patch Set 4 : added todo #

Patch Set 5 : added todo #

Patch Set 6 : merge #

Patch Set 7 : edits #

Patch Set 8 : errant { #

Patch Set 9 : fixed unit tests #

Total comments: 4

Patch Set 10 : nits addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -40 lines) Patch
chrome/browser/ui/website_settings/permission_bubble_manager.h View 1 2 3 5 chunks +23 lines, -2 lines 0 comments Download
chrome/browser/ui/website_settings/permission_bubble_manager.cc View 1 2 3 4 5 6 7 8 9 6 chunks +100 lines, -37 lines 0 comments Download
chrome/browser/ui/website_settings/permission_bubble_manager_unittest.cc View 1 2 3 4 5 6 7 8 7 chunks +96 lines, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
leng
WDYT?
6 years, 10 months ago (2014-02-07 00:48:01 UTC) #1
Greg Billock
https://codereview.chromium.org/150103013/diff/1/chrome/browser/ui/website_settings/permission_bubble_manager.cc File chrome/browser/ui/website_settings/permission_bubble_manager.cc (right): https://codereview.chromium.org/150103013/diff/1/chrome/browser/ui/website_settings/permission_bubble_manager.cc#newcode14 chrome/browser/ui/website_settings/permission_bubble_manager.cc:14: // This is how many ms to wait to ...
6 years, 10 months ago (2014-02-07 20:14:24 UTC) #2
leng
PTAL, thanks! https://codereview.chromium.org/150103013/diff/1/chrome/browser/ui/website_settings/permission_bubble_manager.cc File chrome/browser/ui/website_settings/permission_bubble_manager.cc (right): https://codereview.chromium.org/150103013/diff/1/chrome/browser/ui/website_settings/permission_bubble_manager.cc#newcode14 chrome/browser/ui/website_settings/permission_bubble_manager.cc:14: // This is how many ms to ...
6 years, 10 months ago (2014-02-08 00:11:18 UTC) #3
Greg Billock
lgtm https://codereview.chromium.org/150103013/diff/1/chrome/browser/ui/website_settings/permission_bubble_manager.h File chrome/browser/ui/website_settings/permission_bubble_manager.h (right): https://codereview.chromium.org/150103013/diff/1/chrome/browser/ui/website_settings/permission_bubble_manager.h#newcode60 chrome/browser/ui/website_settings/permission_bubble_manager.h:60: virtual void WebContentsDestroyed( On 2014/02/08 00:11:18, leng wrote: ...
6 years, 10 months ago (2014-02-11 16:26:50 UTC) #4
leng
https://codereview.chromium.org/150103013/diff/1/chrome/browser/ui/website_settings/permission_bubble_manager.h File chrome/browser/ui/website_settings/permission_bubble_manager.h (right): https://codereview.chromium.org/150103013/diff/1/chrome/browser/ui/website_settings/permission_bubble_manager.h#newcode60 chrome/browser/ui/website_settings/permission_bubble_manager.h:60: virtual void WebContentsDestroyed( On 2014/02/11 16:26:50, Greg Billock wrote: ...
6 years, 10 months ago (2014-02-11 16:46:51 UTC) #5
leng
+markusheintz for OWNERS
6 years, 10 months ago (2014-02-11 17:26:54 UTC) #6
markusheintz_
On 2014/02/11 17:26:54, leng wrote: > +markusheintz for OWNERS Owners LGTM
6 years, 10 months ago (2014-02-12 16:56:06 UTC) #7
markusheintz_
Please make sure that you try this with a site like maps. Where clicking on ...
6 years, 10 months ago (2014-02-12 17:00:05 UTC) #8
markusheintz_
Sorry two nits I missed earlier. LGTM still holds after fixing the indentation. The second ...
6 years, 10 months ago (2014-02-12 17:20:07 UTC) #9
leng
I'll be sure to play with this on Maps! https://codereview.chromium.org/150103013/diff/350001/chrome/browser/ui/website_settings/permission_bubble_manager.cc File chrome/browser/ui/website_settings/permission_bubble_manager.cc (right): https://codereview.chromium.org/150103013/diff/350001/chrome/browser/ui/website_settings/permission_bubble_manager.cc#newcode24 chrome/browser/ui/website_settings/permission_bubble_manager.cc:24: ...
6 years, 10 months ago (2014-02-12 23:09:09 UTC) #10
leng
The CQ bit was checked by leng@chromium.org
6 years, 10 months ago (2014-02-12 23:09:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leng@chromium.org/150103013/430001
6 years, 10 months ago (2014-02-12 23:11:36 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 01:41:04 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=262959
6 years, 10 months ago (2014-02-13 01:41:05 UTC) #14
leng
The CQ bit was checked by leng@chromium.org
6 years, 10 months ago (2014-02-13 01:43:01 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leng@chromium.org/150103013/430001
6 years, 10 months ago (2014-02-13 01:45:57 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 03:09:27 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=263178
6 years, 10 months ago (2014-02-13 03:09:28 UTC) #18
leng
The CQ bit was checked by leng@chromium.org
6 years, 10 months ago (2014-02-13 18:00:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leng@chromium.org/150103013/430001
6 years, 10 months ago (2014-02-13 18:01:20 UTC) #20
commit-bot: I haz the power
6 years, 10 months ago (2014-02-13 18:03:34 UTC) #21
Message was sent while issue was closed.
Change committed as 251079

Powered by Google App Engine
This is Rietveld 408576698