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

Issue 10912183: Remove DownloadManager::GetDownloadItem in favor of GetDownload() (Closed)

Created:
8 years, 3 months ago by benjhayden
Modified:
8 years, 2 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org
Visibility:
Public.

Description

Remove DownloadManager::GetDownloadItem() and GetActiveDownloadItem() in favor of GetDownload() Followup to GetAllDownloads() does now: http://codereview.chromium.org/10913015/ Precursor to DownloadHistory-is-an-Observer: http://codereview.chromium.org/10665049/ Reviewers: estade: chrome/browser/ui/webui/downloads_dom_handler.cc Done: bauerb: chrome/browser/plugins/plugin_installer.cc aa: chrome/browser/extensions/webstore_installer.cc achuith: chrome/browser/chromeos/gdata jcivelli: content/public/test jochen: content/shell rdsmith: * Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158595

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 14

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 6

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : ... #

Patch Set 15 : . #

Patch Set 16 : . #

Patch Set 17 : . #

Patch Set 18 : . #

Patch Set 19 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -172 lines) Patch
M chrome/browser/chromeos/gdata/drive_download_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 6 chunks +12 lines, -13 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +18 lines, -3 lines 0 comments Download
M chrome/browser/download/download_file_picker_chromeos.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 14 chunks +14 lines, -28 lines 0 comments Download
M chrome/browser/extensions/webstore_installer.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/plugins/plugin_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/download/download_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +0 lines, -11 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +3 lines, -53 lines 0 comments Download
M content/public/browser/download_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +0 lines, -8 lines 0 comments Download
M content/public/test/download_test_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M content/public/test/download_test_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +41 lines, -38 lines 0 comments Download
M content/shell/shell_download_manager_delegate.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
benjhayden
PTAL
8 years, 3 months ago (2012-09-10 21:57:32 UTC) #1
Randy Smith (Not in Mondays)
First round of poking :-}. http://codereview.chromium.org/10912183/diff/10018/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/10912183/diff/10018/chrome/browser/download/chrome_download_manager_delegate.cc#newcode627 chrome/browser/download/chrome_download_manager_delegate.cc:627: DownloadItem* download = download_manager_->GetDownload(download_id); ...
8 years, 3 months ago (2012-09-11 19:02:21 UTC) #2
benjhayden
PTAL http://codereview.chromium.org/10912183/diff/10018/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/10912183/diff/10018/chrome/browser/download/chrome_download_manager_delegate.cc#newcode627 chrome/browser/download/chrome_download_manager_delegate.cc:627: DownloadItem* download = download_manager_->GetDownload(download_id); On 2012/09/11 19:02:21, rdsmith ...
8 years, 3 months ago (2012-09-12 18:17:25 UTC) #3
Randy Smith (Not in Mondays)
Two high level comments: * Given the frequency with which you get a download and ...
8 years, 3 months ago (2012-09-13 18:52:43 UTC) #4
benjhayden
We talked offline about keeping GetActiveDownload(). Even though 2 options (GetDownload(), GetActiveDownload()) are infinitely better ...
8 years, 3 months ago (2012-09-13 20:19:35 UTC) #5
Randy Smith (Not in Mondays)
LGTM modulo try bots and other reviewers ok.
8 years, 3 months ago (2012-09-14 16:54:57 UTC) #6
Jay Civelli
LGTM for content/public/test
8 years, 3 months ago (2012-09-14 20:28:45 UTC) #7
jochen (gone - plz use gerrit)
content/shell lgtm
8 years, 3 months ago (2012-09-17 19:38:21 UTC) #8
achuithb
chromeos/gdata lgtm
8 years, 3 months ago (2012-09-17 23:11:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/10912183/40001
8 years, 3 months ago (2012-09-21 17:30:44 UTC) #10
commit-bot: I haz the power
Presubmit check for 10912183-40001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-21 17:30:52 UTC) #11
Aaron Boodman
c/b/e lgtm
8 years, 3 months ago (2012-09-21 17:56:56 UTC) #12
benjhayden
James, Bernhard, PTAL for OWNERShip?
8 years, 3 months ago (2012-09-21 20:58:32 UTC) #13
Bernhard Bauer
lgtm
8 years, 3 months ago (2012-09-21 23:00:06 UTC) #14
benjhayden
Evan, PTAL?
8 years, 3 months ago (2012-09-24 20:15:09 UTC) #15
Evan Stade
webui lgtm
8 years, 3 months ago (2012-09-25 06:16:30 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/10912183/43001
8 years, 2 months ago (2012-09-25 14:55:33 UTC) #17
commit-bot: I haz the power
8 years, 2 months ago (2012-09-25 17:23:03 UTC) #18
Change committed as 158595

Powered by Google App Engine
This is Rietveld 408576698