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

Issue 7277073: Support for adding save page download items into downloads history. (Closed)

Created:
9 years, 5 months ago by achuithb
Modified:
9 years, 4 months ago
CC:
chromium-reviews, rdsmith+dwatch_chromium.org, Paweł Hajdan Jr., ahendrickson
Visibility:
Public.

Description

Support for adding save page download items into downloads history. BUG=4823 TEST=right-click an html page, save it, restart the browser. The item should continue to appear in the downloads history (ctrl-j). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95466

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 1

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 8

Patch Set 10 : '' #

Total comments: 16

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 : '' #

Patch Set 20 : '' #

Patch Set 21 : '' #

Patch Set 22 : '' #

Total comments: 19

Patch Set 23 : '' #

Patch Set 24 : '' #

Patch Set 25 : '' #

Patch Set 26 : '' #

Patch Set 27 : '' #

Patch Set 28 : '' #

Patch Set 29 : '' #

Patch Set 30 : '' #

Total comments: 2

Patch Set 31 : '' #

Total comments: 5

Patch Set 32 : '' #

Patch Set 33 : '' #

Total comments: 16

Patch Set 34 : '' #

Total comments: 4

Patch Set 35 : '' #

Patch Set 36 : '' #

Patch Set 37 : '' #

Patch Set 38 : '' #

Total comments: 3

Patch Set 39 : '' #

Total comments: 7

Patch Set 40 : '' #

Patch Set 41 : '' #

Total comments: 10

Patch Set 42 : '' #

Patch Set 43 : '' #

Patch Set 44 : '' #

Patch Set 45 : '' #

Total comments: 2

Patch Set 46 : '' #

Total comments: 3

Patch Set 47 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+358 lines, -144 lines) Patch
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 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -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 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +2 lines, -2 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 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_item.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 7 chunks +33 lines, -17 lines 0 comments Download
M chrome/browser/download/download_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 15 chunks +123 lines, -75 lines 0 comments Download
M chrome/browser/download/save_page_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 8 chunks +121 lines, -7 lines 0 comments Download
M content/browser/download/save_package.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 5 chunks +15 lines, -9 lines 0 comments Download
M content/browser/download/save_package.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 17 chunks +61 lines, -31 lines 0 comments Download

Messages

Total messages: 50 (0 generated)
achuithb
Randy, could you please review at your convenience? I've also added Pawel in case he ...
9 years, 5 months ago (2011-07-04 19:30:18 UTC) #1
achuithb
For reference, here is the previous CL by Magnus: http://codereview.chromium.org/7212017/
9 years, 5 months ago (2011-07-04 19:31:01 UTC) #2
achuithb
Actually, it's this one: http://codereview.chromium.org/6312027
9 years, 5 months ago (2011-07-04 19:31:46 UTC) #3
Randy Smith (Not in Mondays)
So my high level comment is that we need to have more testing, and a ...
9 years, 5 months ago (2011-07-06 20:04:04 UTC) #4
achuithb
Inline. On 2011/07/06 20:04:04, rdsmith wrote: > So my high level comment is that we ...
9 years, 5 months ago (2011-07-06 22:54:11 UTC) #5
Randy Smith (Not in Mondays)
Thanks for the clarification! A couple of responses: On 2011/07/06 22:54:11, achuith.bhandarkar wrote: > Inline. ...
9 years, 5 months ago (2011-07-07 14:55:47 UTC) #6
achuithb
On 2011/07/07 14:55:47, rdsmith wrote: > Thanks for the clarification! A couple of responses: > ...
9 years, 5 months ago (2011-07-07 19:52:17 UTC) #7
Randy Smith (Not in Mondays)
On 2011/07/07 19:52:17, achuith.bhandarkar wrote: > On 2011/07/07 14:55:47, rdsmith wrote: > > I would ...
9 years, 5 months ago (2011-07-08 16:55:03 UTC) #8
Randy Smith (Not in Mondays)
CCing Andy FHI (I think of him as other than me having had the most ...
9 years, 5 months ago (2011-07-08 16:56:25 UTC) #9
hendrickson_a
http://codereview.chromium.org/7277073/diff/19001/chrome/browser/download/save_page_browsertest.cc File chrome/browser/download/save_page_browsertest.cc (right): http://codereview.chromium.org/7277073/diff/19001/chrome/browser/download/save_page_browsertest.cc#newcode117 chrome/browser/download/save_page_browsertest.cc:117: info.received_bytes == num_files_ && I think this deserves a ...
9 years, 5 months ago (2011-07-08 18:47:37 UTC) #10
achuithb
PTAL. Only changes are to save_package.*, and one comment as per ahendrickson added to save_page_browsertest.cc. ...
9 years, 5 months ago (2011-07-08 21:23:54 UTC) #11
Randy Smith (Not in Mondays)
This review is probably starting to give you the flavor of why I was scared ...
9 years, 5 months ago (2011-07-10 19:37:40 UTC) #12
achuithb
Some of the changes from patchset 10: 1. I've moved the history AddEntry code into ...
9 years, 5 months ago (2011-07-13 21:48:16 UTC) #13
Randy Smith (Not in Mondays)
[Adding Ben to CC FHI and in case he wants to comment re: the new ...
9 years, 5 months ago (2011-07-15 17:58:38 UTC) #14
achuithb
Another round of patches. Please take a look, rdsmith. http://codereview.chromium.org/7277073/diff/22020/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (right): http://codereview.chromium.org/7277073/diff/22020/chrome/browser/download/download_manager.cc#newcode126 chrome/browser/download/download_manager.cc:126: ...
9 years, 5 months ago (2011-07-16 20:15:32 UTC) #15
Randy Smith (Not in Mondays)
Next round. One thing the below comments bring up: Have you traced out pathways/trying testing ...
9 years, 5 months ago (2011-07-17 18:25:47 UTC) #16
benjhayden
http://codereview.chromium.org/7277073/diff/22020/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (right): http://codereview.chromium.org/7277073/diff/22020/chrome/browser/download/download_manager.cc#newcode1406 chrome/browser/download/download_manager.cc:1406: int32 DownloadManager::GetNextSavePageId() { Apologies if this was addressed elsewhere, ...
9 years, 5 months ago (2011-07-18 15:37:45 UTC) #17
achuithb
http://codereview.chromium.org/7277073/diff/22020/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (right): http://codereview.chromium.org/7277073/diff/22020/chrome/browser/download/download_manager.cc#newcode1406 chrome/browser/download/download_manager.cc:1406: int32 DownloadManager::GetNextSavePageId() { Not addressed elsewhere. There's a GetNextId ...
9 years, 5 months ago (2011-07-18 18:33:17 UTC) #18
benjhayden
http://codereview.chromium.org/7277073/diff/22020/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (right): http://codereview.chromium.org/7277073/diff/22020/chrome/browser/download/download_manager.cc#newcode1406 chrome/browser/download/download_manager.cc:1406: int32 DownloadManager::GetNextSavePageId() { On 2011/07/18 18:33:18, achuith.bhandarkar wrote: > ...
9 years, 5 months ago (2011-07-18 19:25:01 UTC) #19
achuith
http://codereview.chromium.org/7277073/diff/22020/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (right): http://codereview.chromium.org/7277073/diff/22020/chrome/browser/download/download_manager.cc#newcode1406 chrome/browser/download/download_manager.cc:1406: int32 DownloadManager::GetNextSavePageId() { From reading the CL description, I ...
9 years, 5 months ago (2011-07-18 19:44:37 UTC) #20
achuithb
I hadn't traced the RemoveDownload pathways, but you are right. We do end up accessing ...
9 years, 5 months ago (2011-07-20 03:32:20 UTC) #21
Randy Smith (Not in Mondays)
Wow, this is the downside to the incremental deduction approach to race elimination. On the ...
9 years, 5 months ago (2011-07-20 19:48:43 UTC) #22
Randy Smith (Not in Mondays)
To be clear, this is all in reaction to your point about the download item ...
9 years, 5 months ago (2011-07-20 20:07:28 UTC) #23
achuithb
Sorry Randy, I didn't completely follow what you wanted me to do, but I think ...
9 years, 5 months ago (2011-07-20 21:38:59 UTC) #24
Randy Smith (Not in Mondays)
Given that we can't make this look just like the downloads system flow until we ...
9 years, 5 months ago (2011-07-25 18:59:31 UTC) #25
achuithb
Randy, I put your race analysis in the comments. It is quite verbose, but it ...
9 years, 5 months ago (2011-07-27 01:04:57 UTC) #26
Paweł Hajdan Jr.
http://codereview.chromium.org/7277073/diff/59011/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (right): http://codereview.chromium.org/7277073/diff/59011/chrome/browser/download/download_manager.cc#newcode919 chrome/browser/download/download_manager.cc:919: const int num_deleted = static_cast<int>(pending_deletes.size()); nit: "const int" inside ...
9 years, 5 months ago (2011-07-27 16:53:51 UTC) #27
Randy Smith (Not in Mondays)
http://codereview.chromium.org/7277073/diff/66001/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (right): http://codereview.chromium.org/7277073/diff/66001/chrome/browser/download/download_manager.cc#newcode915 chrome/browser/download/download_manager.cc:915: DCHECK_EQ(1, downloads_count); On 2011/07/27 01:04:57, achuith.bhandarkar wrote: > I ...
9 years, 5 months ago (2011-07-27 21:08:35 UTC) #28
achuithb
First of all - Pawel, welcome back! Hope your internship is going well. I've addressed ...
9 years, 5 months ago (2011-07-28 00:45:57 UTC) #29
Randy Smith (Not in Mondays)
LGTM--I'd like the requested mod below, but I'm not set on it. Pawel, WDYT? http://codereview.chromium.org/7277073/diff/59011/chrome/browser/download/download_manager.h ...
9 years, 4 months ago (2011-07-28 21:16:03 UTC) #30
achuithb
http://codereview.chromium.org/7277073/diff/83003/chrome/browser/download/download_manager.h File chrome/browser/download/download_manager.h (right): http://codereview.chromium.org/7277073/diff/83003/chrome/browser/download/download_manager.h#newcode369 chrome/browser/download/download_manager.h:369: int RemoveDownloadItems(const DownloadSet& items); I can't get this to ...
9 years, 4 months ago (2011-07-28 22:23:27 UTC) #31
Randy Smith (Not in Mondays)
http://codereview.chromium.org/7277073/diff/83003/chrome/browser/download/download_manager.h File chrome/browser/download/download_manager.h (right): http://codereview.chromium.org/7277073/diff/83003/chrome/browser/download/download_manager.h#newcode369 chrome/browser/download/download_manager.h:369: int RemoveDownloadItems(const DownloadSet& items); On 2011/07/28 22:23:27, achuith.bhandarkar wrote: ...
9 years, 4 months ago (2011-07-28 23:24:05 UTC) #32
achuithb
Pawel, do you want me to wait for your review?
9 years, 4 months ago (2011-07-28 23:25:52 UTC) #33
achuithb
Thanks Randy! > Good points. The way that you've got it LGTM.
9 years, 4 months ago (2011-07-28 23:26:28 UTC) #34
Paweł Hajdan Jr.
Note: if there are any review comments by a reviewer you _must_ wait for another ...
9 years, 4 months ago (2011-07-29 18:03:30 UTC) #35
achuithb
Pawel, PTAL http://codereview.chromium.org/7277073/diff/79019/chrome/browser/download/download_manager.h File chrome/browser/download/download_manager.h (right): http://codereview.chromium.org/7277073/diff/79019/chrome/browser/download/download_manager.h#newcode305 chrome/browser/download/download_manager.h:305: DownloadHistory* download_history() const { return download_history_.get(); } ...
9 years, 4 months ago (2011-07-30 01:56:47 UTC) #36
Paweł Hajdan Jr.
http://codereview.chromium.org/7277073/diff/94003/chrome/browser/download/download_manager.h File chrome/browser/download/download_manager.h (right): http://codereview.chromium.org/7277073/diff/94003/chrome/browser/download/download_manager.h#newcode307 chrome/browser/download/download_manager.h:307: DownloadHistory* download_history() { return download_history_.get(); } nit: Why private? ...
9 years, 4 months ago (2011-08-01 18:22:59 UTC) #37
achuithb
Need a comment from Randy before I upload next patchset. http://codereview.chromium.org/7277073/diff/94003/chrome/browser/download/download_manager.h File chrome/browser/download/download_manager.h (right): http://codereview.chromium.org/7277073/diff/94003/chrome/browser/download/download_manager.h#newcode307 ...
9 years, 4 months ago (2011-08-01 21:19:53 UTC) #38
achuithb
Pawel, PTAL. http://codereview.chromium.org/7277073/diff/94003/chrome/browser/download/download_manager.h File chrome/browser/download/download_manager.h (right): http://codereview.chromium.org/7277073/diff/94003/chrome/browser/download/download_manager.h#newcode307 chrome/browser/download/download_manager.h:307: DownloadHistory* download_history() { return download_history_.get(); } I ...
9 years, 4 months ago (2011-08-02 19:00:41 UTC) #39
achuithb
GetSaveInfo() can apparently be called before Init(), so I moved the initialization of download_manager_ to ...
9 years, 4 months ago (2011-08-03 00:42:07 UTC) #40
Randy Smith (Not in Mondays)
Will be trying to do a new review later today--just wanting to get the below ...
9 years, 4 months ago (2011-08-03 16:03:09 UTC) #41
Paweł Hajdan Jr.
http://codereview.chromium.org/7277073/diff/94003/chrome/browser/download/download_manager.h File chrome/browser/download/download_manager.h (right): http://codereview.chromium.org/7277073/diff/94003/chrome/browser/download/download_manager.h#newcode307 chrome/browser/download/download_manager.h:307: DownloadHistory* download_history() { return download_history_.get(); } On 2011/08/03 16:03:09, ...
9 years, 4 months ago (2011-08-03 19:07:46 UTC) #42
achuithb
http://codereview.chromium.org/7277073/diff/94003/chrome/browser/download/download_manager.h File chrome/browser/download/download_manager.h (right): http://codereview.chromium.org/7277073/diff/94003/chrome/browser/download/download_manager.h#newcode307 chrome/browser/download/download_manager.h:307: DownloadHistory* download_history() { return download_history_.get(); } Pawel: It's not ...
9 years, 4 months ago (2011-08-03 19:52:43 UTC) #43
Paweł Hajdan Jr.
http://codereview.chromium.org/7277073/diff/94003/chrome/browser/download/download_manager.h File chrome/browser/download/download_manager.h (right): http://codereview.chromium.org/7277073/diff/94003/chrome/browser/download/download_manager.h#newcode307 chrome/browser/download/download_manager.h:307: DownloadHistory* download_history() { return download_history_.get(); } On 2011/08/03 19:52:43, ...
9 years, 4 months ago (2011-08-03 20:49:40 UTC) #44
achuithb
http://codereview.chromium.org/7277073/diff/94003/chrome/browser/download/download_manager.h File chrome/browser/download/download_manager.h (right): http://codereview.chromium.org/7277073/diff/94003/chrome/browser/download/download_manager.h#newcode307 chrome/browser/download/download_manager.h:307: DownloadHistory* download_history() { return download_history_.get(); } On 2011/08/03 20:49:40, ...
9 years, 4 months ago (2011-08-03 21:05:28 UTC) #45
Randy Smith (Not in Mondays)
Change still LGTM, but I believe this isn't what Pawel wanted; see below. http://codereview.chromium.org/7277073/diff/111002/chrome/browser/download/download_manager.h File ...
9 years, 4 months ago (2011-08-04 16:01:31 UTC) #46
Paweł Hajdan Jr.
http://codereview.chromium.org/7277073/diff/111002/chrome/browser/download/download_manager.h File chrome/browser/download/download_manager.h (right): http://codereview.chromium.org/7277073/diff/111002/chrome/browser/download/download_manager.h#newcode279 chrome/browser/download/download_manager.h:279: #if defined(UNIT_TEST) On 2011/08/04 16:01:32, rdsmith wrote: > It's ...
9 years, 4 months ago (2011-08-04 18:11:47 UTC) #47
achuithb
http://codereview.chromium.org/7277073/diff/111002/chrome/browser/download/download_manager.h File chrome/browser/download/download_manager.h (right): http://codereview.chromium.org/7277073/diff/111002/chrome/browser/download/download_manager.h#newcode279 chrome/browser/download/download_manager.h:279: #if defined(UNIT_TEST) On 2011/08/04 18:11:47, Paweł Hajdan Jr. wrote: ...
9 years, 4 months ago (2011-08-04 18:16:11 UTC) #48
Paweł Hajdan Jr.
LGTM
9 years, 4 months ago (2011-08-04 18:37:57 UTC) #49
achuithb
9 years, 4 months ago (2011-08-04 18:42:59 UTC) #50
On 2011/08/04 18:37:57, Paweł Hajdan Jr. wrote:
> LGTM

Thanks!

Powered by Google App Engine
This is Rietveld 408576698