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

Issue 2272123002: [HBD] Intercept navigation to Flash download page (Closed)

Created:
4 years, 4 months ago by trizzofo
Modified:
4 years, 3 months ago
Reviewers:
Lei Zhang, tommycli, clamy
CC:
chromium-reviews, jam, Bernhard Bauer
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[HBD] Intercept navigation to Flash download page Intercepts navigation to get.adobe.com/flashplayer Here is more information about HTML5 by Default: go/hbd-design-doc BUG=626728 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/8ddaeb7e8317409c88cbb9f1bc65e4351f539239 Cr-Commit-Position: refs/heads/master@{#416113}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Changes per tommycli@'s comments #

Total comments: 13

Patch Set 3 : Changes per Lei Zhang's comments #

Patch Set 4 : Unit test #

Total comments: 6

Patch Set 5 : Changes per tommycli@'s comments #

Patch Set 6 : EXPECT_EQ to ASSERT_EQ for WillStartRequest() checks #

Total comments: 2

Patch Set 7 : Rebase and build fix #

Patch Set 8 : Changes per clamy@'s comment #

Total comments: 4

Patch Set 9 : Changes per Lei Zhang's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -0 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
A chrome/browser/plugins/flash_download_interception.h View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/plugins/flash_download_interception.cc View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/plugins/flash_download_interception_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +108 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 42 (19 generated)
trizzofo
tommycli, ptal
4 years, 4 months ago (2016-08-24 18:45:25 UTC) #2
tommycli
tomas: thanks - some comments: https://codereview.chromium.org/2272123002/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2272123002/diff/1/chrome/browser/chrome_content_browser_client.cc#newcode62 chrome/browser/chrome_content_browser_client.cc:62: #include "chrome/browser/plugins/flash_download_interception.h" These new ...
4 years, 4 months ago (2016-08-24 19:11:31 UTC) #3
trizzofo
https://codereview.chromium.org/2272123002/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2272123002/diff/1/chrome/browser/chrome_content_browser_client.cc#newcode62 chrome/browser/chrome_content_browser_client.cc:62: #include "chrome/browser/plugins/flash_download_interception.h" On 2016/08/24 19:11:30, tommycli wrote: > These ...
4 years, 4 months ago (2016-08-24 22:45:13 UTC) #4
tommycli
LGTM, though you will need another reviewer.
4 years, 4 months ago (2016-08-25 00:42:19 UTC) #5
Lei Zhang
On 2016/08/25 00:42:19, tommycli wrote: > LGTM, though you will need another reviewer. I know ...
4 years, 4 months ago (2016-08-25 00:47:10 UTC) #6
Lei Zhang
https://codereview.chromium.org/2272123002/diff/20001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2272123002/diff/20001/chrome/browser/chrome_content_browser_client.cc#newcode3019 chrome/browser/chrome_content_browser_client.cc:3019: #if defined(ENABLE_PLUGINS) Merge into the if block below? if ...
4 years, 4 months ago (2016-08-25 00:55:07 UTC) #8
tommycli
+cc bauerb This is happening. Not required to review, but FYI
4 years, 4 months ago (2016-08-25 00:57:13 UTC) #9
trizzofo
https://codereview.chromium.org/2272123002/diff/20001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2272123002/diff/20001/chrome/browser/chrome_content_browser_client.cc#newcode3019 chrome/browser/chrome_content_browser_client.cc:3019: #if defined(ENABLE_PLUGINS) On 2016/08/25 00:55:06, Lei Zhang wrote: > ...
4 years, 4 months ago (2016-08-25 01:50:36 UTC) #10
trizzofo
https://codereview.chromium.org/2272123002/diff/20001/chrome/browser/plugins/flash_download_interception.h File chrome/browser/plugins/flash_download_interception.h (right): https://codereview.chromium.org/2272123002/diff/20001/chrome/browser/plugins/flash_download_interception.h#newcode23 chrome/browser/plugins/flash_download_interception.h:23: static std::unique_ptr<content::NavigationThrottle> MaybeCreateThrottleFor( On 2016/08/25 01:50:36, trizzofo wrote: > ...
4 years, 3 months ago (2016-08-25 20:46:52 UTC) #11
Lei Zhang
On 2016/08/25 20:46:52, trizzofo wrote: > Since this CL is blocking some UI work (permission ...
4 years, 3 months ago (2016-08-25 20:57:51 UTC) #12
trizzofo
clamy, ptal at content/browser/frame_host. Thanks!
4 years, 3 months ago (2016-09-01 00:55:49 UTC) #17
tommycli
https://codereview.chromium.org/2272123002/diff/100001/chrome/browser/plugins/flash_download_interception_unittest.cc File chrome/browser/plugins/flash_download_interception_unittest.cc (right): https://codereview.chromium.org/2272123002/diff/100001/chrome/browser/plugins/flash_download_interception_unittest.cc#newcode23 chrome/browser/plugins/flash_download_interception_unittest.cc:23: std::unique_ptr<NavigationThrottle> throttle; If you split up the two cases ...
4 years, 3 months ago (2016-09-01 01:08:20 UTC) #18
trizzofo
https://codereview.chromium.org/2272123002/diff/100001/chrome/browser/plugins/flash_download_interception_unittest.cc File chrome/browser/plugins/flash_download_interception_unittest.cc (right): https://codereview.chromium.org/2272123002/diff/100001/chrome/browser/plugins/flash_download_interception_unittest.cc#newcode23 chrome/browser/plugins/flash_download_interception_unittest.cc:23: std::unique_ptr<NavigationThrottle> throttle; On 2016/09/01 01:08:20, tommycli wrote: > If ...
4 years, 3 months ago (2016-09-01 01:56:14 UTC) #19
trizzofo
https://codereview.chromium.org/2272123002/diff/100001/chrome/browser/plugins/flash_download_interception_unittest.cc File chrome/browser/plugins/flash_download_interception_unittest.cc (right): https://codereview.chromium.org/2272123002/diff/100001/chrome/browser/plugins/flash_download_interception_unittest.cc#newcode62 chrome/browser/plugins/flash_download_interception_unittest.cc:62: EXPECT_NE(nullptr, throttle); On 2016/09/01 01:08:20, tommycli wrote: > To ...
4 years, 3 months ago (2016-09-01 17:58:56 UTC) #20
tommycli
lgtm thanks
4 years, 3 months ago (2016-09-01 18:05:25 UTC) #21
clamy
I don't think the content/ changes are necessary. We already have one function that will ...
4 years, 3 months ago (2016-09-01 18:26:43 UTC) #26
trizzofo
Lei Zhang, ptal. https://codereview.chromium.org/2272123002/diff/140001/content/public/browser/navigation_handle.h File content/public/browser/navigation_handle.h (right): https://codereview.chromium.org/2272123002/diff/140001/content/public/browser/navigation_handle.h#newcode210 content/public/browser/navigation_handle.h:210: virtual void SetHasUserGestureForTesting(bool has_user_gesture) = 0; ...
4 years, 3 months ago (2016-09-01 21:02:45 UTC) #31
Lei Zhang
lgtm https://codereview.chromium.org/2272123002/diff/180001/chrome/browser/plugins/flash_download_interception_unittest.cc File chrome/browser/plugins/flash_download_interception_unittest.cc (right): https://codereview.chromium.org/2272123002/diff/180001/chrome/browser/plugins/flash_download_interception_unittest.cc#newcode28 chrome/browser/plugins/flash_download_interception_unittest.cc:28: GURL("https://get.adobe.com/flashplayer/"), main_rfh()); Maybe also try: http://get.adobe.com/flashplayer http://example.com/get.adobe.com/flashplayer https://codereview.chromium.org/2272123002/diff/180001/chrome/browser/plugins/flash_download_interception_unittest.cc#newcode43 ...
4 years, 3 months ago (2016-09-01 21:08:11 UTC) #34
trizzofo
https://codereview.chromium.org/2272123002/diff/180001/chrome/browser/plugins/flash_download_interception_unittest.cc File chrome/browser/plugins/flash_download_interception_unittest.cc (right): https://codereview.chromium.org/2272123002/diff/180001/chrome/browser/plugins/flash_download_interception_unittest.cc#newcode28 chrome/browser/plugins/flash_download_interception_unittest.cc:28: GURL("https://get.adobe.com/flashplayer/"), main_rfh()); On 2016/09/01 21:08:11, Lei Zhang wrote: > ...
4 years, 3 months ago (2016-09-01 21:30:29 UTC) #35
trizzofo
4 years, 3 months ago (2016-09-01 21:30:30 UTC) #36
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/2272123002/200001
4 years, 3 months ago (2016-09-01 22:03:19 UTC) #39
commit-bot: I haz the power
Committed patchset #9 (id:200001)
4 years, 3 months ago (2016-09-01 23:18:44 UTC) #40
commit-bot: I haz the power
4 years, 3 months ago (2016-09-01 23:21:32 UTC) #42
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/8ddaeb7e8317409c88cbb9f1bc65e4351f539239
Cr-Commit-Position: refs/heads/master@{#416113}

Powered by Google App Engine
This is Rietveld 408576698