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

Issue 322203003: Allow duplicate infobar requests (Closed)

Created:
6 years, 6 months ago by qinmin
Modified:
6 years, 6 months ago
Reviewers:
Bernhard Bauer, xhwang
CC:
chromium-reviews, markusheintz_
Visibility:
Public.

Description

Allow duplicate infobar requests There can be duplicate infobar requests. For example, the same EME video might issue multiple key requests, and that will cause several duplicate infobar requests. We need to remember these requests, and once the first request's permission is set, send notification for the other requests. When OnPermissionSet(), it is always called on the request has has_infobar() is true. As a result, we can remove those duplicate requests that doesn't have infobar. BUG=373641 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276630

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : simplify the for loop without changing the logic #

Total comments: 2

Patch Set 4 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -27 lines) Patch
M chrome/browser/content_settings/permission_queue_controller.cc View 1 2 3 4 chunks +25 lines, -27 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
qinmin
PTAL
6 years, 6 months ago (2014-06-10 21:22:05 UTC) #1
xhwang
lgtm % nits https://codereview.chromium.org/322203003/diff/60001/chrome/browser/content_settings/permission_queue_controller.cc File chrome/browser/content_settings/permission_queue_controller.cc (right): https://codereview.chromium.org/322203003/diff/60001/chrome/browser/content_settings/permission_queue_controller.cc#newcode195 chrome/browser/content_settings/permission_queue_controller.cc:195: if (i->IsForPair(requesting_frame, embedder)) { nit: See ...
6 years, 6 months ago (2014-06-10 21:48:39 UTC) #2
qinmin
Simplified the CL, PTAL again. When OnPermissionSet(), we are always called on the request that ...
6 years, 6 months ago (2014-06-10 23:16:00 UTC) #3
qinmin
+bauerb for OWNER of chrome/browser/content_settings/
6 years, 6 months ago (2014-06-10 23:20:10 UTC) #4
xhwang
lgtm But still, this loop can be simplified a lot.
6 years, 6 months ago (2014-06-10 23:27:06 UTC) #5
qinmin
On 2014/06/10 23:27:06, xhwang wrote: > lgtm > > But still, this loop can be ...
6 years, 6 months ago (2014-06-11 00:09:10 UTC) #6
xhwang
nit https://codereview.chromium.org/322203003/diff/100001/chrome/browser/content_settings/permission_queue_controller.cc File chrome/browser/content_settings/permission_queue_controller.cc (right): https://codereview.chromium.org/322203003/diff/100001/chrome/browser/content_settings/permission_queue_controller.cc#newcode197 chrome/browser/content_settings/permission_queue_controller.cc:197: continue; You can have here: if (!i->has_infobar()) { ...
6 years, 6 months ago (2014-06-11 00:17:40 UTC) #7
qinmin
https://codereview.chromium.org/322203003/diff/100001/chrome/browser/content_settings/permission_queue_controller.cc File chrome/browser/content_settings/permission_queue_controller.cc (right): https://codereview.chromium.org/322203003/diff/100001/chrome/browser/content_settings/permission_queue_controller.cc#newcode197 chrome/browser/content_settings/permission_queue_controller.cc:197: continue; On 2014/06/11 00:17:40, xhwang wrote: > You can ...
6 years, 6 months ago (2014-06-11 00:42:35 UTC) #8
Bernhard Bauer
lgtm
6 years, 6 months ago (2014-06-11 08:43:26 UTC) #9
qinmin
The CQ bit was checked by qinmin@chromium.org
6 years, 6 months ago (2014-06-11 16:23:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/322203003/120001
6 years, 6 months ago (2014-06-11 16:25:42 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:00:08 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:18:41 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19590)
6 years, 6 months ago (2014-06-11 21:18:43 UTC) #14
qinmin
The CQ bit was checked by qinmin@chromium.org
6 years, 6 months ago (2014-06-11 21:35:06 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/322203003/120001
6 years, 6 months ago (2014-06-11 21:37:17 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:53:56 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 22:25:04 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19716)
6 years, 6 months ago (2014-06-11 22:25:05 UTC) #19
qinmin
The CQ bit was checked by qinmin@chromium.org
6 years, 6 months ago (2014-06-11 22:37:03 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/322203003/120001
6 years, 6 months ago (2014-06-11 22:39:06 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 22:43:40 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 22:46:34 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19792)
6 years, 6 months ago (2014-06-11 22:46:35 UTC) #24
qinmin
The CQ bit was checked by qinmin@chromium.org
6 years, 6 months ago (2014-06-12 01:27:53 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/322203003/120001
6 years, 6 months ago (2014-06-12 01:28:59 UTC) #26
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 11:40:07 UTC) #27
Message was sent while issue was closed.
Change committed as 276630

Powered by Google App Engine
This is Rietveld 408576698