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

Issue 8135017: Refactor downloads into a ProfileKeyedService. (Closed)

Created:
9 years, 2 months ago by Randy Smith (Not in Mondays)
Modified:
9 years, 2 months ago
CC:
chromium-reviews, asanka, Avi (use Gerrit), jennb, achuith+watch_chromium.org, prasadt, Erik does not do reviews, brettw-cc_chromium.org, kkania, mihaip+watch_chromium.org, dcheng, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, jianli, rdsmith+dwatch_chromium.org, Paweł Hajdan Jr., dpranke+watch-content_chromium.org, Dmitry Titov
Visibility:
Public.

Description

Refactor downloads into a ProfileKeyedService. BUG=94383 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105115

Patch Set 1 #

Patch Set 2 : Merged to LKGR to run try bots. #

Total comments: 16

Patch Set 3 : Shifted over to open setting of delegate; focus at DownloadService. #

Patch Set 4 : Incorporated Miranda's comments. #

Patch Set 5 : Fix errors in profile specification. #

Patch Set 6 : Merged to LKGR. #

Patch Set 7 : Changed indentation of calls to DownloadServiceFactory. #

Total comments: 6

Patch Set 8 : Incorporated comments. #

Total comments: 8

Patch Set 9 : Incorporated latest rounds of comments from John. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+343 lines, -178 lines) Patch
M chrome/browser/app_controller_mac.mm View 1 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 7 chunks +19 lines, -7 lines 0 comments Download
M chrome/browser/browsing_data_remover.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 15 chunks +24 lines, -23 lines 0 comments Download
M chrome/browser/download/download_crx_util.cc View 2 chunks +5 lines, -1 line 0 comments Download
A chrome/browser/download/download_service.h View 1 2 3 4 5 6 7 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/download/download_service.cc View 1 2 3 4 5 6 7 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/download/download_service_factory.h View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/download/download_service_factory.cc View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
M chrome/browser/download/save_page_browsertest.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_downloads_api.cc View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 5 4 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 5 chunks +3 lines, -33 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 5 3 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 5 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 6 chunks +3 lines, -33 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/gtk/download/download_in_progress_dialog_gtk.cc View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/panels/panel_browsertest.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_in_progress_dialog_view.cc View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/active_downloads_ui.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 2 3 4 5 6 4 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/downloads_ui.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 2 chunks +0 lines, -11 lines 0 comments Download
M content/browser/browser_context.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/download_manager.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download
M content/browser/download/download_manager.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M content/shell/shell_browser_context.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/shell_browser_context.cc View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M content/shell/shell_download_manager_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_browser_context.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/test/test_browser_context.cc View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Randy Smith (Not in Mondays)
May as well get this in people's review queues. mirandac@: Primary reviewer. Most of this ...
9 years, 2 months ago (2011-10-05 18:43:02 UTC) #1
jam
http://codereview.chromium.org/8135017/diff/1034/content/browser/download/download_manager.h File content/browser/download/download_manager.h (right): http://codereview.chromium.org/8135017/diff/1034/content/browser/download/download_manager.h#newcode303 content/browser/download/download_manager.h:303: friend class DownloadService; two issues come to mind: 1) ...
9 years, 2 months ago (2011-10-05 19:27:12 UTC) #2
Randy Smith (Not in Mondays)
On 2011/10/05 19:27:12, John Abd-El-Malek wrote: > http://codereview.chromium.org/8135017/diff/1034/content/browser/download/download_manager.h > File content/browser/download/download_manager.h (right): > > http://codereview.chromium.org/8135017/diff/1034/content/browser/download/download_manager.h#newcode303 ...
9 years, 2 months ago (2011-10-05 19:56:47 UTC) #3
ahendrickson
download_browsertest.cc LGTM.
9 years, 2 months ago (2011-10-06 17:50:08 UTC) #4
Miranda Callahan
Much cleaner than I was afraid -- I think I only have nits. I don't ...
9 years, 2 months ago (2011-10-06 20:07:32 UTC) #5
jam
On 2011/10/06 20:07:32, Miranda Callahan wrote: > Much cleaner than I was afraid -- I ...
9 years, 2 months ago (2011-10-06 23:16:08 UTC) #6
Randy Smith (Not in Mondays)
On 2011/10/06 23:16:08, John Abd-El-Malek wrote: > On 2011/10/06 20:07:32, Miranda Callahan wrote: > > ...
9 years, 2 months ago (2011-10-07 15:02:23 UTC) #7
Miranda Callahan
On 2011/10/07 15:02:23, rdsmith wrote: > On 2011/10/06 23:16:08, John Abd-El-Malek wrote: > > On ...
9 years, 2 months ago (2011-10-07 15:05:37 UTC) #8
jam
On 2011/10/07 15:05:37, Miranda Callahan wrote: > On 2011/10/07 15:02:23, rdsmith wrote: > > On ...
9 years, 2 months ago (2011-10-07 16:04:48 UTC) #9
Randy Smith (Not in Mondays)
I've incorporated all comments; PTAL. I'm still having try bot problems; working on that next. ...
9 years, 2 months ago (2011-10-08 23:46:54 UTC) #10
Randy Smith (Not in Mondays)
Miranda: After thinking about it, I decided I preferred the wonkiness of the unbalanced parenthesis ...
9 years, 2 months ago (2011-10-09 23:52:31 UTC) #11
jam
http://codereview.chromium.org/8135017/diff/21082/content/browser/download/download_manager.h File content/browser/download/download_manager.h (right): http://codereview.chromium.org/8135017/diff/21082/content/browser/download/download_manager.h#newcode298 content/browser/download/download_manager.h:298: void SetDownloadManagerDelegate(DownloadManagerDelegate* delegate); nit: please add a "ForTesting" suffix. ...
9 years, 2 months ago (2011-10-10 18:19:33 UTC) #12
Miranda Callahan
On 2011/10/09 23:52:31, rdsmith wrote: > Miranda: After thinking about it, I decided I preferred ...
9 years, 2 months ago (2011-10-11 14:14:42 UTC) #13
Miranda Callahan
On 2011/10/11 14:14:42, Miranda Callahan wrote: > On 2011/10/09 23:52:31, rdsmith wrote: > > Miranda: ...
9 years, 2 months ago (2011-10-11 14:36:03 UTC) #14
Miranda Callahan
http://codereview.chromium.org/8135017/diff/21082/content/browser/download/download_manager.h File content/browser/download/download_manager.h (right): http://codereview.chromium.org/8135017/diff/21082/content/browser/download/download_manager.h#newcode298 content/browser/download/download_manager.h:298: void SetDownloadManagerDelegate(DownloadManagerDelegate* delegate); On 2011/10/10 18:19:33, John Abd-El-Malek wrote: ...
9 years, 2 months ago (2011-10-11 14:53:03 UTC) #15
Randy Smith (Not in Mondays)
Responding to John's latest round of comments. Note that I haven't yet updated the code, ...
9 years, 2 months ago (2011-10-11 18:24:42 UTC) #16
Randy Smith (Not in Mondays)
Updated to incorporate John's comments, minus the change of DownloadManager::SetDownloadDelegate to DownloadManager::SetDownloadDelegateForTesting for reasons mentioned ...
9 years, 2 months ago (2011-10-11 18:51:06 UTC) #17
jam
lgtm http://codereview.chromium.org/8135017/diff/21082/content/browser/download/download_manager.h File content/browser/download/download_manager.h (right): http://codereview.chromium.org/8135017/diff/21082/content/browser/download/download_manager.h#newcode298 content/browser/download/download_manager.h:298: void SetDownloadManagerDelegate(DownloadManagerDelegate* delegate); On 2011/10/11 18:24:43, rdsmith wrote: ...
9 years, 2 months ago (2011-10-11 19:31:12 UTC) #18
Randy Smith (Not in Mondays)
All comments incorporated; believe I'm ok to commit with a good try bot run. Thanks! ...
9 years, 2 months ago (2011-10-11 20:28:27 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/8135017/36005
9 years, 2 months ago (2011-10-12 16:11:22 UTC) #20
commit-bot: I haz the power
Change committed as 105115
9 years, 2 months ago (2011-10-12 17:43:38 UTC) #21
tony
The heapchecker is complaining about leaks with ProfileKeyedService in the stack. E.g.,: http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20OS%20Heapcheck/builds/2810/steps/heapcheck%20test%3A%20unit/logs/stdio Can you ...
9 years, 2 months ago (2011-10-12 21:40:08 UTC) #22
Randy Smith (Not in Mondays)
On 2011/10/12 21:40:08, tony wrote: > The heapchecker is complaining about leaks with ProfileKeyedService in ...
9 years, 2 months ago (2011-10-12 23:00:25 UTC) #23
Randy Smith (Not in Mondays)
On 2011/10/12 23:00:25, rdsmith wrote: > On 2011/10/12 21:40:08, tony wrote: > > The heapchecker ...
9 years, 2 months ago (2011-10-12 23:03:45 UTC) #24
tony
9 years, 2 months ago (2011-10-12 23:10:39 UTC) #25
I didn't add a suppression or file a bug for it-- please do if it's a
non-obvious fix.

The suppressions file is src/tools/heapcheck/suppressions.txt.

Thanks!

Powered by Google App Engine
This is Rietveld 408576698