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 10805020: Kill DownloadItem::IsOtr() (Closed)

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

Description

Kill DownloadItem::IsOtr() Consumers should just remember which DownloadManager they got the item from, or else lookup the item from both managers and rely on the id-space sharing. Also move CreateDownloadItemValue from download_util to download_dom_handler. Reviewers: asanka: * Done: jam: chrome/browser/automation/* jhawkins: downloads_dom_handler.cc rdsmith: * Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151504

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 4

Patch Set 5 : merge #

Patch Set 6 : fixed? #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : merge #

Total comments: 4

Patch Set 10 : . #

Total comments: 15

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : . #

Patch Set 15 : . #

Patch Set 16 : . #

Total comments: 6

Patch Set 17 : . #

Total comments: 8

Patch Set 18 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -204 lines) Patch
M chrome/browser/automation/automation_provider.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/automation/automation_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/automation/automation_provider_observers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +20 lines, -5 lines 0 comments Download
M chrome/browser/download/download_history.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/download/download_util.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/download/download_util.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -104 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 11 chunks +82 lines, -35 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 1 chunk +0 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 15 16 17 5 chunks +135 lines, -2 lines 0 comments Download
M content/browser/download/download_item_factory.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/download/download_item_impl.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +0 lines, -6 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +0 lines, -8 lines 0 comments Download
M content/browser/download/download_item_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_manager_impl.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +3 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 4 chunks +0 lines, -5 lines 0 comments Download
M content/browser/download/save_package.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M content/public/browser/download_item.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
benjhayden
PTAL This seemed easy, so I'm sure I missed something crucial.
8 years, 5 months ago (2012-07-20 16:39:47 UTC) #1
Randy Smith (Not in Mondays)
High level questions I'd like to do a round on before doing a detailed review: ...
8 years, 5 months ago (2012-07-23 18:19:26 UTC) #2
benjhayden
On 2012/07/23 18:19:26, rdsmith wrote: > High level questions I'd like to do a round ...
8 years, 5 months ago (2012-07-23 20:33:50 UTC) #3
benjhayden
PTAL http://codereview.chromium.org/10805020/diff/1011/chrome/browser/extensions/api/downloads/downloads_api.cc File chrome/browser/extensions/api/downloads/downloads_api.cc (right): http://codereview.chromium.org/10805020/diff/1011/chrome/browser/extensions/api/downloads/downloads_api.cc#newcode593 chrome/browser/extensions/api/downloads/downloads_api.cc:593: DCHECK(on_record ^ off_record); On 2012/07/23 18:19:26, rdsmith wrote: ...
8 years, 5 months ago (2012-07-25 20:59:58 UTC) #4
asanka
http://codereview.chromium.org/10805020/diff/29001/chrome/browser/automation/automation_provider.cc File chrome/browser/automation/automation_provider.cc (right): http://codereview.chromium.org/10805020/diff/29001/chrome/browser/automation/automation_provider.cc#newcode331 chrome/browser/automation/automation_provider.cc:331: bool incognito = profile->HasOffTheRecordProfile() && Is it possible for ...
8 years, 4 months ago (2012-08-01 17:11:35 UTC) #5
benjhayden
Thanks! PTAL. http://codereview.chromium.org/10805020/diff/29001/chrome/browser/automation/automation_provider.cc File chrome/browser/automation/automation_provider.cc (right): http://codereview.chromium.org/10805020/diff/29001/chrome/browser/automation/automation_provider.cc#newcode331 chrome/browser/automation/automation_provider.cc:331: bool incognito = profile->HasOffTheRecordProfile() && On 2012/08/01 ...
8 years, 4 months ago (2012-08-01 18:51:55 UTC) #6
Randy Smith (Not in Mondays)
http://codereview.chromium.org/10805020/diff/20006/chrome/browser/automation/automation_provider.h File chrome/browser/automation/automation_provider.h (right): http://codereview.chromium.org/10805020/diff/20006/chrome/browser/automation/automation_provider.h#newcode160 chrome/browser/automation/automation_provider.h:160: Profile* profile); If you did this in response to ...
8 years, 4 months ago (2012-08-02 17:52:17 UTC) #7
benjhayden
PTAL http://codereview.chromium.org/10805020/diff/20006/chrome/browser/automation/automation_provider.h File chrome/browser/automation/automation_provider.h (right): http://codereview.chromium.org/10805020/diff/20006/chrome/browser/automation/automation_provider.h#newcode160 chrome/browser/automation/automation_provider.h:160: Profile* profile); On 2012/08/02 17:52:17, rdsmith wrote: > ...
8 years, 4 months ago (2012-08-13 15:08:09 UTC) #8
Randy Smith (Not in Mondays)
LGTM with below request. http://codereview.chromium.org/10805020/diff/20006/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/10805020/diff/20006/chrome/browser/download/chrome_download_manager_delegate.cc#newcode135 chrome/browser/download/chrome_download_manager_delegate.cc:135: if (profile_->GetOriginalProfile() == profile_) { ...
8 years, 4 months ago (2012-08-13 18:52:58 UTC) #9
benjhayden
http://codereview.chromium.org/10805020/diff/20006/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): http://codereview.chromium.org/10805020/diff/20006/chrome/browser/download/chrome_download_manager_delegate.cc#newcode138 chrome/browser/download/chrome_download_manager_delegate.cc:138: download_manager_)); On 2012/08/13 18:52:58, rdsmith wrote: > On 2012/08/13 ...
8 years, 4 months ago (2012-08-13 20:26:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/10805020/34009
8 years, 4 months ago (2012-08-13 20:26:37 UTC) #11
commit-bot: I haz the power
Presubmit check for 10805020-34009 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-13 20:26:49 UTC) #12
benjhayden
PTAL
8 years, 4 months ago (2012-08-13 20:39:06 UTC) #13
jam
lgtm
8 years, 4 months ago (2012-08-13 20:40:19 UTC) #14
James Hawkins
LGTM with nits. http://codereview.chromium.org/10805020/diff/34009/chrome/browser/ui/webui/downloads_dom_handler.cc File chrome/browser/ui/webui/downloads_dom_handler.cc (right): http://codereview.chromium.org/10805020/diff/34009/chrome/browser/ui/webui/downloads_dom_handler.cc#newcode118 chrome/browser/ui/webui/downloads_dom_handler.cc:118: DictionaryValue* CreateDownloadItemValue( nit: Document method and ...
8 years, 4 months ago (2012-08-13 20:47:53 UTC) #15
benjhayden
Thanks, everybody! Asanka, feel free to wait until tomorrow, I don't want to merge this ...
8 years, 4 months ago (2012-08-13 21:49:58 UTC) #16
asanka
LGTM. Comments are nits. https://chromiumcodereview.appspot.com/10805020/diff/37030/chrome/browser/automation/automation_provider.cc File chrome/browser/automation/automation_provider.cc (right): https://chromiumcodereview.appspot.com/10805020/diff/37030/chrome/browser/automation/automation_provider.cc#newcode43 chrome/browser/automation/automation_provider.cc:43: #include "chrome/browser/download/download_service_factory.h" Nit: Are these ...
8 years, 4 months ago (2012-08-13 23:03:57 UTC) #17
benjhayden
Thanks, everybody! http://codereview.chromium.org/10805020/diff/37030/chrome/browser/automation/automation_provider.cc File chrome/browser/automation/automation_provider.cc (right): http://codereview.chromium.org/10805020/diff/37030/chrome/browser/automation/automation_provider.cc#newcode43 chrome/browser/automation/automation_provider.cc:43: #include "chrome/browser/download/download_service_factory.h" On 2012/08/13 23:03:58, asanka wrote: ...
8 years, 4 months ago (2012-08-14 14:30:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benjhayden@chromium.org/10805020/21013
8 years, 4 months ago (2012-08-14 14:31:04 UTC) #19
commit-bot: I haz the power
8 years, 4 months ago (2012-08-14 17:51:56 UTC) #20
Change committed as 151504

Powered by Google App Engine
This is Rietveld 408576698