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

Issue 6312027: Add files saved using 'Save page as' to the download history.... (Closed)

Created:
9 years, 10 months ago by magnus
Modified:
9 years, 7 months ago
CC:
chromium-reviews, rdsmith+dwatch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add files saved using 'Save page as' to the download history. Contributed by fuzzac@gmail.com. BUG=4823 TEST=Open any web page. Save the page using 'Save page as'. Make sure the file is listed in the downloads page. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=76780

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 20

Patch Set 4 : '' #

Total comments: 3

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -25 lines) Patch
M chrome/browser/download/download_manager.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/download/download_manager.cc View 1 2 3 4 5 6 2 chunks +17 lines, -14 lines 0 comments Download
M chrome/browser/download/save_package.h View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/download/save_package.cc View 1 2 3 4 5 6 5 chunks +49 lines, -11 lines 0 comments Download
M chrome/browser/download/save_page_browsertest.cc View 1 2 3 4 5 6 6 chunks +50 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
magnus
9 years, 10 months ago (2011-01-30 23:17:07 UTC) #1
Paweł Hajdan Jr.
Thank you for the patch. Could you also add a test? http://codereview.chromium.org/6312027/diff/1/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (right): ...
9 years, 10 months ago (2011-01-31 08:32:19 UTC) #2
Randy Smith (Not in Mondays)
Please also test carefully to make sure that the "Show in Folder" and "open" functionality ...
9 years, 10 months ago (2011-01-31 14:18:12 UTC) #3
Randy Smith (Not in Mondays)
Sorry, one other test request: Test the below items quitting and restarting the browser in ...
9 years, 10 months ago (2011-01-31 14:20:05 UTC) #4
magnus
Great feedback. It does not save correctly to the history db (and the fact that ...
9 years, 10 months ago (2011-01-31 18:12:12 UTC) #5
magnus
I uploaded another patch that correctly saves the information to the history database. "Show in ...
9 years, 10 months ago (2011-02-04 18:48:48 UTC) #6
Randy Smith (Not in Mondays)
magnus: I apologize for asking this, but how important is it to you to get ...
9 years, 10 months ago (2011-02-04 19:38:19 UTC) #7
magnus
I completely see your point, SavePackage did seem a bit bolted on. This is one ...
9 years, 10 months ago (2011-02-04 20:47:28 UTC) #8
Randy Smith (Not in Mondays)
On 2011/02/04 20:47:28, magnus wrote: > I completely see your point, SavePackage did seem a ...
9 years, 10 months ago (2011-02-06 19:56:13 UTC) #9
magnus
> Hmmm. If you can see a way to do that with minimal changes to ...
9 years, 10 months ago (2011-02-11 03:51:55 UTC) #10
Randy Smith (Not in Mondays)
I think I'm ok with this approach, though I'm curious about Pawel's opinion. Thank you ...
9 years, 10 months ago (2011-02-11 19:10:06 UTC) #11
Paweł Hajdan Jr.
I'm generally fine with the approach. There are possible issues with the behavior changes, but ...
9 years, 10 months ago (2011-02-11 19:17:49 UTC) #12
magnus
Thanks for all the feedback. The behavior when canceling seems consistent with the other downloads ...
9 years, 10 months ago (2011-02-13 03:32:41 UTC) #13
Paweł Hajdan Jr.
http://codereview.chromium.org/6312027/diff/16001/chrome/browser/download/save_page_browsertest.cc File chrome/browser/download/save_page_browsertest.cc (right): http://codereview.chromium.org/6312027/diff/16001/chrome/browser/download/save_page_browsertest.cc#newcode52 chrome/browser/download/save_page_browsertest.cc:52: EXPECT_EQ(1u, download_manager->history_downloads_.size()); This is not enough. I'd like to ...
9 years, 10 months ago (2011-02-14 09:35:53 UTC) #14
Randy Smith (Not in Mondays)
LGTM if tests as previously specified pass (make sure all the behaviors you expect to ...
9 years, 10 months ago (2011-02-14 21:42:42 UTC) #15
magnus
I updated the tests to query the history system and inlined the checks in the ...
9 years, 10 months ago (2011-02-16 04:43:23 UTC) #16
Paweł Hajdan Jr.
LGTM with one comment. http://codereview.chromium.org/6312027/diff/24001/chrome/browser/download/save_page_browsertest.cc File chrome/browser/download/save_page_browsertest.cc (right): http://codereview.chromium.org/6312027/diff/24001/chrome/browser/download/save_page_browsertest.cc#newcode68 chrome/browser/download/save_page_browsertest.cc:68: // Make a copy of ...
9 years, 10 months ago (2011-02-18 11:11:35 UTC) #17
magnus
Fixed. http://codereview.chromium.org/6312027/diff/24001/chrome/browser/download/save_page_browsertest.cc File chrome/browser/download/save_page_browsertest.cc (right): http://codereview.chromium.org/6312027/diff/24001/chrome/browser/download/save_page_browsertest.cc#newcode68 chrome/browser/download/save_page_browsertest.cc:68: // Make a copy of the URLs returned ...
9 years, 10 months ago (2011-02-18 17:54:01 UTC) #18
Randy Smith (Not in Mondays)
Magnus: Do you need a committer for this, or are you ok doing it on ...
9 years, 10 months ago (2011-02-22 22:22:02 UTC) #19
magnus
On 2011/02/22 22:22:02, rdsmith wrote: > Magnus: Do you need a committer for this, or ...
9 years, 10 months ago (2011-02-23 02:38:08 UTC) #20
rdsmith_google.com
9 years, 10 months ago (2011-02-25 19:50:27 UTC) #21
I'll try to commit the patch over the next couple of days.  I'm build
sheriff next week; that's a good time to watch the tree :-}.

-- Randy

On Tue, Feb 22, 2011 at 9:38 PM,  <fuzzac@gmail.com> wrote:
> On 2011/02/22 22:22:02, rdsmith wrote:
>>
>> Magnus: Do you need a committer for this, or are you ok doing it on your
>> own?
>
>
> I don't yet have commit access, so I'm going to need someone to help. If
> either
> of you guys are willing to commit the patch, that would be much appreciated.
>
>
> http://codereview.chromium.org/6312027/
>

Powered by Google App Engine
This is Rietveld 408576698