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

Issue 8804018: Delay DownloadManager creation by adding a callback queue to DownloadService (Closed)

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

Description

Delay DownloadManager creation by adding a callback queue to DownloadService. ExtensionDownloadsEventRouter's ctor pushes a Callback to this queue instead of calling GetDownloadManager(), which would create the manager. EDER doesn't really need the manager in its ctor, it just needs the manager before the manager does something interesting. BUG=106502 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113892

Patch Set 1 #

Total comments: 2

Patch Set 2 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -7 lines) Patch
M chrome/browser/download/download_extension_api.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/download/download_extension_api.cc View 1 2 chunks +16 lines, -7 lines 0 comments Download
M chrome/browser/download/download_service.h View 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/download/download_service.cc View 3 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
benjhayden
PTAL
9 years ago (2011-12-05 19:02:17 UTC) #1
Randy Smith (Not in Mondays)
What happens if someone calls a downloads extension function before the download manager is initialized?
9 years ago (2011-12-05 22:29:29 UTC) #2
benjhayden
On 2011/12/05 22:29:29, rdsmith wrote: > What happens if someone calls a downloads extension function ...
9 years ago (2011-12-05 22:41:38 UTC) #3
Randy Smith (Not in Mondays)
LGTM *but*: If you're willing, I'd like you to check with the extensions folks to ...
9 years ago (2011-12-06 17:12:41 UTC) #4
benjhayden
On 2011/12/06 17:12:41, rdsmith wrote: > LGTM *but*: If you're willing, I'd like you to ...
9 years ago (2011-12-06 18:12:07 UTC) #5
Randy Smith (Not in Mondays)
On 2011/12/06 18:12:07, b s h wrote: > On 2011/12/06 17:12:41, rdsmith wrote: > > ...
9 years ago (2011-12-06 18:16:42 UTC) #6
benjhayden
Submitting. http://codereview.chromium.org/8804018/diff/1/chrome/browser/download/download_extension_api.cc File chrome/browser/download/download_extension_api.cc (right): http://codereview.chromium.org/8804018/diff/1/chrome/browser/download/download_extension_api.cc#newcode483 chrome/browser/download/download_extension_api.cc:483: DownloadServiceFactory::GetForProfile(profile)->OnManagerCreated(base::Bind( On 2011/12/06 17:12:41, rdsmith wrote: > nit: ...
9 years ago (2011-12-06 18:45:05 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/8804018/6001
9 years ago (2011-12-09 22:17:18 UTC) #8
commit-bot: I haz the power
9 years ago (2011-12-10 00:17:19 UTC) #9
Change committed as 113892

Powered by Google App Engine
This is Rietveld 408576698