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 8060042: Add downloads.onCreated apitest and fix a few bugs (Closed)

Created:
9 years, 2 months ago by benjhayden
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, mihaip+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

The apitest needs a handler on the testserver that does not return a dangerous file and finishes quickly. "/slow?0" appears to work. DownloadRequestHandle::GetTabContents() returns NULL in the test framework. Make DRH::GetDownloadManager() use RVH->process().browser_context() directly instead. Make MockDownloadManagerDelegate::AddItemToPersistentStore() call DM::OnItemAddedToPersistentStore() so that items are added to the history_downloads_ map even in the test framework. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106560

Patch Set 1 : " #

Total comments: 4

Patch Set 2 : fix segv #

Total comments: 4

Patch Set 3 : listenOnce, safe_fast_url #

Total comments: 2

Patch Set 4 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -19 lines) Patch
M chrome/test/data/extensions/api_test/downloads/test.js View 1 2 3 5 chunks +28 lines, -12 lines 0 comments Download
M content/browser/download/download_request_handle.cc View 1 1 chunk +8 lines, -7 lines 0 comments Download
M content/browser/download/mock_download_manager_delegate.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/download/mock_download_manager_delegate.cc View 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
benjhayden
9 years, 2 months ago (2011-10-13 19:20:43 UTC) #1
Randy Smith (Not in Mondays)
LGTM, but I'd recommend you also get a reviewer that's familiar with the syntax and ...
9 years, 2 months ago (2011-10-17 17:39:55 UTC) #2
benjhayden
Mihai, would you mind taking a look at this small change to the downloads extension ...
9 years, 2 months ago (2011-10-17 17:54:29 UTC) #3
Mihai Parparita -not on Chrome
http://codereview.chromium.org/8060042/diff/11002/chrome/test/data/extensions/api_test/downloads/test.js File chrome/test/data/extensions/api_test/downloads/test.js (right): http://codereview.chromium.org/8060042/diff/11002/chrome/test/data/extensions/api_test/downloads/test.js#newcode37 chrome/test/data/extensions/api_test/downloads/test.js:37: {"url": getURL("slow?0"), "filename": "foo"}, Can you add a comment ...
9 years, 2 months ago (2011-10-18 19:59:36 UTC) #4
benjhayden
http://codereview.chromium.org/8060042/diff/11002/chrome/test/data/extensions/api_test/downloads/test.js File chrome/test/data/extensions/api_test/downloads/test.js (right): http://codereview.chromium.org/8060042/diff/11002/chrome/test/data/extensions/api_test/downloads/test.js#newcode37 chrome/test/data/extensions/api_test/downloads/test.js:37: {"url": getURL("slow?0"), "filename": "foo"}, On 2011/10/18 19:59:37, Mihai Parparita ...
9 years, 2 months ago (2011-10-18 20:32:56 UTC) #5
Mihai Parparita -not on Chrome
LGTM http://codereview.chromium.org/8060042/diff/18001/chrome/test/data/extensions/api_test/downloads/test.js File chrome/test/data/extensions/api_test/downloads/test.js (right): http://codereview.chromium.org/8060042/diff/18001/chrome/test/data/extensions/api_test/downloads/test.js#newcode35 chrome/test/data/extensions/api_test/downloads/test.js:35: var safe_fast_url = getURL("slow?0"); This should be called ...
9 years, 2 months ago (2011-10-18 20:39:02 UTC) #6
benjhayden
I'll submit as soon as the trybots return if there are no further comments. Thanks! ...
9 years, 2 months ago (2011-10-20 19:05:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/8060042/25005
9 years, 2 months ago (2011-10-20 19:06:06 UTC) #8
commit-bot: I haz the power
9 years, 2 months ago (2011-10-20 20:20:12 UTC) #9
Change committed as 106560

Powered by Google App Engine
This is Rietveld 408576698