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

Issue 10836164: Change policy to not trigger dangerous download UI for web intents dispatched files. (Closed)

Created:
8 years, 4 months ago by Greg Billock
Modified:
8 years, 3 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, rdsmith+dwatch_chromium.org
Visibility:
Public.

Description

Change policy to not trigger dangerous download UI for web intents dispatched files. R=asanka@chromium.org BUG=140845 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155443

Patch Set 1 #

Patch Set 2 : Add extension; delete file when done #

Total comments: 10

Patch Set 3 : Review comments #

Total comments: 2

Patch Set 4 : Fix space #

Patch Set 5 : Add test #

Patch Set 6 : Move to WebContentsTester #

Total comments: 2

Patch Set 7 : Fix test fixture and RVHM destructor #

Patch Set 8 : Fix file path literal #

Patch Set 9 : Another win-compatible file path literal try #

Patch Set 10 : Rebase to head #

Patch Set 11 : Rebase #

Patch Set 12 : Test should work on chromeos.wq #

Patch Set 13 : Use the ChromeRenderViewHostTestHarness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -10 lines) Patch
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +63 lines, -8 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 53 (0 generated)
Greg Billock
8 years, 4 months ago (2012-08-08 23:29:11 UTC) #1
Randy Smith (Not in Mondays)
I don't understand why you're adding a WEB_INTENTS entry to danger type (I also don't ...
8 years, 4 months ago (2012-08-09 17:42:06 UTC) #2
Greg Billock
On Thu, Aug 9, 2012 at 10:42 AM, <rdsmith@chromium.org> wrote: > I don't understand why ...
8 years, 4 months ago (2012-08-09 17:56:42 UTC) #3
Randy Smith (Not in Mondays)
On 2012/08/09 17:56:42, Greg Billock wrote: > On Thu, Aug 9, 2012 at 10:42 AM, ...
8 years, 4 months ago (2012-08-09 21:09:11 UTC) #4
asanka
On 2012/08/09 21:09:11, rdsmith wrote: > On 2012/08/09 17:56:42, Greg Billock wrote: > > On ...
8 years, 4 months ago (2012-08-10 06:04:14 UTC) #5
Randy Smith (Not in Mondays)
On 2012/08/10 06:04:14, asanka wrote: > On 2012/08/09 21:09:11, rdsmith wrote: > > On 2012/08/09 ...
8 years, 4 months ago (2012-08-10 16:15:20 UTC) #6
Greg Billock
This all sounds good. Preparing second patch now. In particular, my goals are: 1. If ...
8 years, 4 months ago (2012-08-10 18:08:44 UTC) #7
Greg Billock
On 2012/08/10 18:08:44, Greg Billock wrote: > This all sounds good. Preparing second patch now. ...
8 years, 4 months ago (2012-08-16 01:10:07 UTC) #8
Randy Smith (Not in Mondays)
On 2012/08/16 01:10:07, Greg Billock wrote: > On 2012/08/10 18:08:44, Greg Billock wrote: > > ...
8 years, 4 months ago (2012-08-16 13:34:26 UTC) #9
Greg Billock
Sounds good. Took you off R= On Thu, Aug 16, 2012 at 6:34 AM, <rdsmith@chromium.org> ...
8 years, 4 months ago (2012-08-16 14:49:08 UTC) #10
asanka
https://chromiumcodereview.appspot.com/10836164/diff/7001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/10836164/diff/7001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode403 chrome/browser/download/chrome_download_manager_delegate.cc:403: void DeleteFile(const FilePath& file_path) { Nit: Move to anonymous ...
8 years, 4 months ago (2012-08-16 18:27:25 UTC) #11
Greg Billock
https://chromiumcodereview.appspot.com/10836164/diff/7001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): https://chromiumcodereview.appspot.com/10836164/diff/7001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode403 chrome/browser/download/chrome_download_manager_delegate.cc:403: void DeleteFile(const FilePath& file_path) { On 2012/08/16 18:27:25, asanka ...
8 years, 4 months ago (2012-08-16 21:29:51 UTC) #12
asanka
LGTM. Can you add some tests to chrome_download_manager_delegate_unittest.cc? You could copy something like StartDownload_Basic as ...
8 years, 4 months ago (2012-08-17 15:26:42 UTC) #13
Greg Billock
I'll add tests. http://codereview.chromium.org/10836164/diff/10001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/10836164/diff/10001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode126 chrome/browser/download/chrome_download_manager_delegate.cc:126: On 2012/08/17 15:26:42, asanka wrote: > ...
8 years, 4 months ago (2012-08-17 23:22:21 UTC) #14
Greg Billock
Tests are in. Boy, that was painful to figure out what was going on. And ...
8 years, 4 months ago (2012-08-22 21:16:50 UTC) #15
Greg Billock
On 2012/08/22 21:16:50, Greg Billock wrote: > Tests are in. Boy, that was painful to ...
8 years, 3 months ago (2012-08-24 18:39:17 UTC) #16
asanka
On 2012/08/22 21:16:50, Greg Billock wrote: > Tests are in. Boy, that was painful to ...
8 years, 3 months ago (2012-08-24 18:45:34 UTC) #17
asanka
On 2012/08/24 18:45:34, asanka wrote: > On 2012/08/22 21:16:50, Greg Billock wrote: > > Tests ...
8 years, 3 months ago (2012-08-24 18:46:12 UTC) #18
Greg Billock
I needed to add some machinery to TestWebContents to not drag in a bunch of ...
8 years, 3 months ago (2012-08-24 18:47:59 UTC) #19
Greg Billock
On 2012/08/24 18:47:59, Greg Billock wrote: > I needed to add some machinery to TestWebContents ...
8 years, 3 months ago (2012-08-24 22:00:29 UTC) #20
jam
On 2012/08/24 22:00:29, Greg Billock wrote: > On 2012/08/24 18:47:59, Greg Billock wrote: > > ...
8 years, 3 months ago (2012-08-27 17:35:13 UTC) #21
Greg Billock
On Mon, Aug 27, 2012 at 10:35 AM, <jam@chromium.org> wrote: > On 2012/08/24 22:00:29, Greg ...
8 years, 3 months ago (2012-08-27 17:59:05 UTC) #22
jam
On 2012/08/27 17:59:05, Greg Billock wrote: > On Mon, Aug 27, 2012 at 10:35 AM, ...
8 years, 3 months ago (2012-08-28 15:59:50 UTC) #23
Greg Billock
On 2012/08/28 15:59:50, John Abd-El-Malek wrote: > Where was the crash in RVHM's destructor? in ...
8 years, 3 months ago (2012-08-28 16:06:36 UTC) #24
Greg Billock
On 2012/08/28 16:06:36, Greg Billock wrote: > On 2012/08/28 15:59:50, John Abd-El-Malek wrote: > > ...
8 years, 3 months ago (2012-08-28 18:24:06 UTC) #25
jam
lgtm http://codereview.chromium.org/10836164/diff/20001/content/public/test/web_contents_tester.cc File content/public/test/web_contents_tester.cc (right): http://codereview.chromium.org/10836164/diff/20001/content/public/test/web_contents_tester.cc#newcode68 content/public/test/web_contents_tester.cc:68: TestWebContents* contents = TestWebContents::CreateWithoutInit(browser_context); nit: 80 chars...
8 years, 3 months ago (2012-08-28 21:50:19 UTC) #26
Greg Billock
http://codereview.chromium.org/10836164/diff/20001/content/public/test/web_contents_tester.cc File content/public/test/web_contents_tester.cc (right): http://codereview.chromium.org/10836164/diff/20001/content/public/test/web_contents_tester.cc#newcode68 content/public/test/web_contents_tester.cc:68: TestWebContents* contents = TestWebContents::CreateWithoutInit(browser_context); On 2012/08/28 21:50:19, John Abd-El-Malek ...
8 years, 3 months ago (2012-08-29 00:55:30 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/10836164/25002
8 years, 3 months ago (2012-08-29 00:56:34 UTC) #28
commit-bot: I haz the power
Try job failure for 10836164-25002 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-08-29 02:27:06 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/10836164/36001
8 years, 3 months ago (2012-08-29 18:30:31 UTC) #30
commit-bot: I haz the power
Try job failure for 10836164-36001 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 3 months ago (2012-08-29 20:49:28 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/10836164/36001
8 years, 3 months ago (2012-08-31 16:57:17 UTC) #32
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 3 months ago (2012-08-31 22:35:41 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/10836164/36001
8 years, 3 months ago (2012-09-01 05:04:55 UTC) #34
commit-bot: I haz the power
Try job failure for 10836164-36001 (retry) on linux_chromeos for step "unit_tests". It's a second try, ...
8 years, 3 months ago (2012-09-01 09:24:32 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/10836164/49002
8 years, 3 months ago (2012-09-04 18:58:22 UTC) #36
commit-bot: I haz the power
Try job failure for 10836164-49002 (retry) on linux_chromeos for step "unit_tests". It's a second try, ...
8 years, 3 months ago (2012-09-04 21:31:26 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/10836164/49002
8 years, 3 months ago (2012-09-04 23:23:45 UTC) #38
commit-bot: I haz the power
Try job failure for 10836164-49002 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-09-04 23:52:57 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/10836164/42002
8 years, 3 months ago (2012-09-05 20:43:41 UTC) #40
commit-bot: I haz the power
Try job failure for 10836164-42002 (retry) on linux_chromeos for step "unit_tests". It's a second try, ...
8 years, 3 months ago (2012-09-05 22:34:39 UTC) #41
Greg Billock
Boy, this test is fighting back really hard. I've given up trying to get TestWebContents ...
8 years, 3 months ago (2012-09-06 01:02:32 UTC) #42
Randy Smith (Not in Mondays)
On 2012/09/06 01:02:32, Greg Billock wrote: > Boy, this test is fighting back really hard. ...
8 years, 3 months ago (2012-09-06 15:37:43 UTC) #43
Greg Billock
No, it's the TestWebContents fixtures that are causing the problems. I've won, but fought for ...
8 years, 3 months ago (2012-09-06 18:30:53 UTC) #44
Randy Smith (Not in Mondays)
I'm not sure I have the right expertise; I only know the downloads code. What ...
8 years, 3 months ago (2012-09-06 19:29:20 UTC) #45
Greg Billock
On 2012/09/06 19:29:20, rdsmith wrote: > I'm not sure I have the right expertise; I ...
8 years, 3 months ago (2012-09-06 20:53:14 UTC) #46
Randy Smith (Not in Mondays)
So the basic testing you're doing in the context of the CDMD looks good to ...
8 years, 3 months ago (2012-09-07 14:30:49 UTC) #47
Greg Billock
Basically my code relies on the WebContents having a delegate. The WebContents fixtures come with ...
8 years, 3 months ago (2012-09-07 15:10:03 UTC) #48
Randy Smith (Not in Mondays)
Thanks! LGTM.
8 years, 3 months ago (2012-09-07 15:42:02 UTC) #49
Greg Billock
On 2012/09/07 15:42:02, rdsmith wrote: > Thanks! LGTM. Belatedly realized that my other change (http://codereview.chromium.org/10880074/) ...
8 years, 3 months ago (2012-09-07 15:46:53 UTC) #50
Greg Billock
On 2012/09/07 15:46:53, Greg Billock wrote: > On 2012/09/07 15:42:02, rdsmith wrote: > > Thanks! ...
8 years, 3 months ago (2012-09-07 16:59:21 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/10836164/43009
8 years, 3 months ago (2012-09-07 17:00:03 UTC) #52
commit-bot: I haz the power
8 years, 3 months ago (2012-09-07 19:10:13 UTC) #53
Change committed as 155443

Powered by Google App Engine
This is Rietveld 408576698