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

Issue 10918136: Make web store resilient against download completion happening before opening. (Closed)

Created:
8 years, 3 months ago by Randy Smith (Not in Mondays)
Modified:
8 years, 3 months ago
Reviewers:
benjhayden, sky
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, rdsmith+dwatch_chromium.org
Visibility:
Public.

Description

Make web store resilient against download completion happening before opening. This isn't needed currently, but if we change the point at which a download is considered complete to when we finish writing the file and release it (as is about to happen), subsystems that have the download auto-open (such as web store install) will need to wait for open to occur rather than completion. R=benjhayden@chromium.org R=aa@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156683

Patch Set 1 #

Total comments: 6

Patch Set 2 : Incorporated Ben's comments. #

Total comments: 2

Patch Set 3 : Made specification of observer more precise. #

Patch Set 4 : Merged to LKGR (156083) #

Patch Set 5 : Fix compile errors. #

Total comments: 2

Patch Set 6 : Incorporated comments. #

Total comments: 2

Patch Set 7 : Incorporated comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -5 lines) Patch
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 5 chunks +23 lines, -4 lines 0 comments Download
M content/public/test/download_test_observer.h View 1 2 3 4 2 chunks +31 lines, -0 lines 0 comments Download
M content/public/test/download_test_observer.cc View 1 2 3 4 5 6 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Randy Smith (Not in Mondays)
Ben, Aaron: Could you take a look at this CL? Ben, this will look familiar ...
8 years, 3 months ago (2012-09-10 00:16:03 UTC) #1
benjhayden
http://codereview.chromium.org/10918136/diff/1/content/public/test/download_test_observer.cc File content/public/test/download_test_observer.cc (right): http://codereview.chromium.org/10918136/diff/1/content/public/test/download_test_observer.cc#newcode69 content/public/test/download_test_observer.cc:69: return true; Are you sure that OnDownloadDestroyed() will never ...
8 years, 3 months ago (2012-09-10 14:48:52 UTC) #2
Randy Smith (Not in Mondays)
http://codereview.chromium.org/10918136/diff/1/content/public/test/download_test_observer.cc File content/public/test/download_test_observer.cc (right): http://codereview.chromium.org/10918136/diff/1/content/public/test/download_test_observer.cc#newcode69 content/public/test/download_test_observer.cc:69: return true; On 2012/09/10 14:48:52, benjhayden_chromium wrote: > Are ...
8 years, 3 months ago (2012-09-10 17:16:42 UTC) #3
benjhayden
http://codereview.chromium.org/10918136/diff/8002/content/public/test/download_test_observer.cc File content/public/test/download_test_observer.cc (right): http://codereview.chromium.org/10918136/diff/8002/content/public/test/download_test_observer.cc#newcode65 content/public/test/download_test_observer.cc:65: return event_seen_; Nice! What if WaitForEvent() is called on ...
8 years, 3 months ago (2012-09-10 17:37:29 UTC) #4
Randy Smith (Not in Mondays)
I'm postponing try jobs for a bit; I think I'm not going to get them ...
8 years, 3 months ago (2012-09-10 18:32:34 UTC) #5
Aaron Boodman
Removing self from reviewers. I don't know this code well enough to be of much ...
8 years, 3 months ago (2012-09-11 21:11:36 UTC) #6
Randy Smith (Not in Mondays)
Ben: Ping?
8 years, 3 months ago (2012-09-12 17:31:47 UTC) #7
benjhayden
lgtm http://codereview.chromium.org/10918136/diff/13005/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/10918136/diff/13005/chrome/browser/download/download_browsertest.cc#newcode1607 chrome/browser/download/download_browsertest.cc:1607: downloads[0], base::Bind(WasAutoOpened)).WaitForEvent(); Why don't you need/want the & ...
8 years, 3 months ago (2012-09-12 17:42:14 UTC) #8
Randy Smith (Not in Mondays)
http://codereview.chromium.org/10918136/diff/13005/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/10918136/diff/13005/chrome/browser/download/download_browsertest.cc#newcode1607 chrome/browser/download/download_browsertest.cc:1607: downloads[0], base::Bind(WasAutoOpened)).WaitForEvent(); On 2012/09/12 17:42:14, benjhayden_chromium wrote: > Why ...
8 years, 3 months ago (2012-09-12 19:11:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/10918136/4008
8 years, 3 months ago (2012-09-12 19:12:05 UTC) #10
commit-bot: I haz the power
Presubmit check for 10918136-4008 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-12 19:12:09 UTC) #11
Randy Smith (Not in Mondays)
Scott: Rubbertstamp (or real review :-}) for content/public/test?
8 years, 3 months ago (2012-09-13 20:16:30 UTC) #12
sky
LGTM http://codereview.chromium.org/10918136/diff/4008/content/public/test/download_test_observer.cc File content/public/test/download_test_observer.cc (right): http://codereview.chromium.org/10918136/diff/4008/content/public/test/download_test_observer.cc#newcode49 content/public/test/download_test_observer.cc:49: : item_(item), filter_(filter), waiting_(false), event_seen_(false) { each param ...
8 years, 3 months ago (2012-09-13 21:15:55 UTC) #13
Randy Smith (Not in Mondays)
Thanks! http://codereview.chromium.org/10918136/diff/4008/content/public/test/download_test_observer.cc File content/public/test/download_test_observer.cc (right): http://codereview.chromium.org/10918136/diff/4008/content/public/test/download_test_observer.cc#newcode49 content/public/test/download_test_observer.cc:49: : item_(item), filter_(filter), waiting_(false), event_seen_(false) { On 2012/09/13 ...
8 years, 3 months ago (2012-09-13 21:33:15 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/10918136/12005
8 years, 3 months ago (2012-09-13 21:34:32 UTC) #15
commit-bot: I haz the power
8 years, 3 months ago (2012-09-13 23:48:48 UTC) #16
Change committed as 156683

Powered by Google App Engine
This is Rietveld 408576698