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

Issue 2354443002: Implement PluginsPermissionContext and hookup to flash download interception. (Closed)

Created:
4 years, 3 months ago by raymes
Modified:
4 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-permissions_chromium.org, jam, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement PluginsPermissionContext and hookup to flash download interception. This implements the basic logic for the PluginsPermissionContext which: 1) Accurately checks the content setting to determine whether to show the prompt. 2) Displays an infobar to refresh the page if the user clicks allow. BUG=641615 Committed: https://crrev.com/f54094bfcc90193718623b611c7c55c5ecf51d71 Cr-Commit-Position: refs/heads/master@{#421076}

Patch Set 1 #

Total comments: 8

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : Implement PluginsPermissionContext and hookup to flash download interception. #

Patch Set 5 : Implement PluginsPermissionContext and hookup to flash download interception. #

Patch Set 6 : Implement PluginsPermissionContext and hookup to flash download interception. #

Patch Set 7 : Implement PluginsPermissionContext and hookup to flash download interception. #

Total comments: 6

Patch Set 8 : Implement PluginsPermissionContext and hookup to flash download interception. #

Patch Set 9 : Implement PluginsPermissionContext and hookup to flash download interception. #

Patch Set 10 : Implement PluginsPermissionContext and hookup to flash download interception. #

Patch Set 11 : Implement PluginsPermissionContext and hookup to flash download interception. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -15 lines) Patch
M chrome/browser/engagement/site_engagement_score.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/permissions/permission_uma_util.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/plugins/flash_download_interception.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +17 lines, -11 lines 0 comments Download
M chrome/browser/plugins/flash_permission_context.h View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/plugins/flash_permission_context.cc View 1 2 3 4 5 6 7 2 chunks +37 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (11 generated)
raymes
PTAL. I'll add some browser tests if the approach looks good. https://codereview.chromium.org/2354443002/diff/1/chrome/browser/plugins/flash_download_interception.cc File chrome/browser/plugins/flash_download_interception.cc (left): ...
4 years, 3 months ago (2016-09-19 05:40:28 UTC) #2
dominickn
Approach looks good to me https://codereview.chromium.org/2354443002/diff/1/chrome/browser/plugins/flash_download_interception.cc File chrome/browser/plugins/flash_download_interception.cc (right): https://codereview.chromium.org/2354443002/diff/1/chrome/browser/plugins/flash_download_interception.cc#newcode39 chrome/browser/plugins/flash_download_interception.cc:39: content::RenderFrameHost* rfh = source->GetMainFrame(); ...
4 years, 3 months ago (2016-09-19 05:54:22 UTC) #3
tommycli
agree, overall looks good. Some questions below https://codereview.chromium.org/2354443002/diff/1/chrome/browser/plugins/flash_download_interception.cc File chrome/browser/plugins/flash_download_interception.cc (right): https://codereview.chromium.org/2354443002/diff/1/chrome/browser/plugins/flash_download_interception.cc#newcode31 chrome/browser/plugins/flash_download_interception.cc:31: void DoNothing(blink::mojom::PermissionStatus ...
4 years, 3 months ago (2016-09-19 16:44:27 UTC) #4
raymes
I've added some tests. I need to work out how to get flash to run ...
4 years, 3 months ago (2016-09-21 05:46:06 UTC) #5
tommycli
On 2016/09/21 05:46:06, raymes wrote: > I've added some tests. I need to work out ...
4 years, 3 months ago (2016-09-21 16:46:54 UTC) #6
raymes
On 2016/09/21 16:46:54, tommycli wrote: > On 2016/09/21 05:46:06, raymes wrote: > > I've added ...
4 years, 3 months ago (2016-09-22 02:36:08 UTC) #7
raymes
+bauerb for plugins/
4 years, 3 months ago (2016-09-22 02:36:36 UTC) #9
Bernhard Bauer
lgtm https://codereview.chromium.org/2354443002/diff/120001/chrome/browser/engagement/site_engagement_score.h File chrome/browser/engagement/site_engagement_score.h (right): https://codereview.chromium.org/2354443002/diff/120001/chrome/browser/engagement/site_engagement_score.h#newcode165 chrome/browser/engagement/site_engagement_score.h:165: friend class FlashPermissionTestConfig; Sort these? https://codereview.chromium.org/2354443002/diff/120001/chrome/browser/plugins/flash_download_interception.cc File chrome/browser/plugins/flash_download_interception.cc ...
4 years, 3 months ago (2016-09-22 16:59:11 UTC) #10
tommycli
https://codereview.chromium.org/2354443002/diff/1/chrome/browser/plugins/flash_download_interception.cc File chrome/browser/plugins/flash_download_interception.cc (right): https://codereview.chromium.org/2354443002/diff/1/chrome/browser/plugins/flash_download_interception.cc#newcode31 chrome/browser/plugins/flash_download_interception.cc:31: void DoNothing(blink::mojom::PermissionStatus result) {} On 2016/09/21 05:46:06, raymes wrote: ...
4 years, 3 months ago (2016-09-23 23:27:27 UTC) #11
raymes
On 2016/09/23 23:27:27, tommycli wrote: > https://codereview.chromium.org/2354443002/diff/1/chrome/browser/plugins/flash_download_interception.cc > File chrome/browser/plugins/flash_download_interception.cc (right): > > https://codereview.chromium.org/2354443002/diff/1/chrome/browser/plugins/flash_download_interception.cc#newcode31 > ...
4 years, 2 months ago (2016-09-26 03:21:18 UTC) #12
raymes
Thanks! https://codereview.chromium.org/2354443002/diff/120001/chrome/browser/engagement/site_engagement_score.h File chrome/browser/engagement/site_engagement_score.h (right): https://codereview.chromium.org/2354443002/diff/120001/chrome/browser/engagement/site_engagement_score.h#newcode165 chrome/browser/engagement/site_engagement_score.h:165: friend class FlashPermissionTestConfig; On 2016/09/22 16:59:10, Bernhard (slow ...
4 years, 2 months ago (2016-09-26 03:23:33 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2354443002/200001
4 years, 2 months ago (2016-09-26 04:33:28 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/285881)
4 years, 2 months ago (2016-09-26 05:16:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2354443002/200001
4 years, 2 months ago (2016-09-26 05:23:59 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/147782)
4 years, 2 months ago (2016-09-26 06:57:30 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2354443002/200001
4 years, 2 months ago (2016-09-26 07:45:42 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/147890)
4 years, 2 months ago (2016-09-26 10:10:59 UTC) #26
tommycli
On 2016/09/26 10:10:59, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 2 months ago (2016-09-26 22:56:36 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2354443002/200001
4 years, 2 months ago (2016-09-27 00:18:54 UTC) #29
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 2 months ago (2016-09-27 01:48:48 UTC) #30
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 01:53:35 UTC) #32
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/f54094bfcc90193718623b611c7c55c5ecf51d71
Cr-Commit-Position: refs/heads/master@{#421076}

Powered by Google App Engine
This is Rietveld 408576698