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

Issue 102683004: Add mime type information to the download database (Closed)

Created:
7 years ago by Tiger
Modified:
6 years, 6 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, benjhayden+dwatch_chromium.org, browser-components-watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add mime type information to the download database BUG=328382

Patch Set 1 #

Total comments: 9

Patch Set 2 : Review fixes #

Patch Set 3 : Review fixes (missed one) #

Total comments: 8

Patch Set 4 : Readded space before namespace comment #

Patch Set 5 : Fix MigrateDownloadsReasonPathsAndDangerType migration #

Patch Set 6 : Move kSchema and kUrlChainSchema to InitDownloadTable #

Total comments: 3

Patch Set 7 : #

Patch Set 8 : Review fixes #

Total comments: 1

Patch Set 9 : Review fixes #

Total comments: 3

Patch Set 10 : Review fixes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -48 lines) Patch
M chrome/browser/download/download_history.cc View 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/download/download_history_unittest.cc View 1 2 3 7 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/history/download_database.h View 1 1 chunk +3 lines, -0 lines 1 comment Download
M chrome/browser/history/download_database.cc View 1 2 3 4 5 6 7 8 9 11 chunks +83 lines, -38 lines 0 comments Download
M chrome/browser/history/download_row.h View 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/history/download_row.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/history/history_database.cc View 1 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +74 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
A + chrome/test/data/History/history.28.sql View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/download/download_item_factory.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/download/download_item_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/download/download_manager_impl.h View 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 4 chunks +8 lines, -0 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 3 chunks +6 lines, -0 lines 0 comments Download
M content/public/browser/download_manager.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/test/mock_download_manager.h View 1 4 chunks +7 lines, -0 lines 0 comments Download
M content/public/test/mock_download_manager.cc View 1 2 5 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
Tiger
jochen@chromium.org: Please review changes in ben@chromium.org: Please review changes in sky@chromium.org: Please review changes in ...
7 years ago (2013-12-16 15:48:31 UTC) #1
jochen (gone - plz use gerrit)
you'll want rdsmith@ or somebody else from downloads to review the entire CL
7 years ago (2013-12-16 15:50:56 UTC) #2
Tiger
On 2013/12/16 15:50:56, jochen wrote: > you'll want rdsmith@ or somebody else from downloads to ...
7 years ago (2013-12-16 15:58:21 UTC) #3
sky
On Mon, Dec 16, 2013 at 7:48 AM, <tiger@opera.com> wrote: > Reviewers: jochen, Ben Goodger ...
7 years ago (2013-12-16 17:24:28 UTC) #4
Randy Smith (Not in Mondays)
I really hope you don't regret opening this particular can of worms :-J. Any chance ...
7 years ago (2013-12-16 21:23:18 UTC) #5
Randy Smith (Not in Mondays)
On 2013/12/16 21:23:18, rdsmith wrote: > I really hope you don't regret opening this particular ...
7 years ago (2013-12-16 21:23:56 UTC) #6
asanka
I'll also second Randy's question regarding whether we need a DB version bump. IMHO it's ...
7 years ago (2013-12-16 21:51:48 UTC) #7
Randy Smith (Not in Mondays)
On 2013/12/16 21:51:48, asanka wrote: > I'll also second Randy's question regarding whether we need ...
7 years ago (2013-12-16 21:59:07 UTC) #8
Tiger
I've bumped the db version, added an upgrade test, moved the database upgrade to a ...
7 years ago (2013-12-17 11:34:58 UTC) #9
Randy Smith (Not in Mondays)
From my perspective this is looking good modulo the issues below. I think sky@ should ...
7 years ago (2013-12-17 18:48:57 UTC) #10
asanka
Could you update the DownloadTest.DownloadTest_History test in chrome/browser/download/download_browsertest.cc to also check for persisted MIME types? ...
7 years ago (2013-12-17 19:14:12 UTC) #11
sky
https://codereview.chromium.org/102683004/diff/40001/chrome/browser/history/download_database.cc File chrome/browser/history/download_database.cc (right): https://codereview.chromium.org/102683004/diff/40001/chrome/browser/history/download_database.cc#newcode252 chrome/browser/history/download_database.cc:252: " original_mime_type ) " On 2013/12/17 18:48:58, rdsmith wrote: ...
7 years ago (2013-12-17 19:22:46 UTC) #12
Randy Smith (Not in Mondays)
On 2013/12/17 19:22:46, sky wrote: > https://codereview.chromium.org/102683004/diff/40001/chrome/browser/history/download_database.cc > File chrome/browser/history/download_database.cc (right): > > https://codereview.chromium.org/102683004/diff/40001/chrome/browser/history/download_database.cc#newcode252 > ...
7 years ago (2013-12-17 20:55:05 UTC) #13
Tiger
On 2013/12/17 20:55:05, rdsmith wrote: > On 2013/12/17 19:22:46, sky wrote: > > > https://codereview.chromium.org/102683004/diff/40001/chrome/browser/history/download_database.cc ...
7 years ago (2013-12-17 21:20:19 UTC) #14
Tiger
On 2013/12/17 21:20:19, Tiger wrote: > On 2013/12/17 20:55:05, rdsmith wrote: > > On 2013/12/17 ...
7 years ago (2013-12-17 21:25:52 UTC) #15
Tiger
There we go. How is this looking?
7 years ago (2013-12-17 21:35:38 UTC) #16
Randy Smith (Not in Mondays)
On 2013/12/17 21:20:19, Tiger wrote: > On 2013/12/17 20:55:05, rdsmith wrote: > > On 2013/12/17 ...
7 years ago (2013-12-18 00:47:05 UTC) #17
Tiger
On 2013/12/18 00:47:05, rdsmith wrote: > On 2013/12/17 21:20:19, Tiger wrote: > > On 2013/12/17 ...
7 years ago (2013-12-18 08:33:53 UTC) #18
Randy Smith (Not in Mondays)
On 2013/12/18 08:33:53, Tiger wrote: > On 2013/12/18 00:47:05, rdsmith wrote: > > On 2013/12/17 ...
7 years ago (2013-12-18 19:55:08 UTC) #19
sky
On 2013/12/18 19:55:08, rdsmith wrote: > On 2013/12/18 08:33:53, Tiger wrote: > > On 2013/12/18 ...
7 years ago (2013-12-18 22:14:08 UTC) #20
Tiger
> I like keeping the N->N+1 strictness. Especially since in this case it doesn't > ...
7 years ago (2013-12-18 22:56:45 UTC) #21
sky
https://codereview.chromium.org/102683004/diff/90001/chrome/browser/history/download_database.cc File chrome/browser/history/download_database.cc (right): https://codereview.chromium.org/102683004/diff/90001/chrome/browser/history/download_database.cc#newcode208 chrome/browser/history/download_database.cc:208: const char kReasonPathDangerSchema[] = This is not static where ...
7 years ago (2013-12-18 23:24:05 UTC) #22
Tiger
On 2013/12/18 23:24:05, sky wrote: > https://codereview.chromium.org/102683004/diff/90001/chrome/browser/history/download_database.cc > File chrome/browser/history/download_database.cc (right): > > https://codereview.chromium.org/102683004/diff/90001/chrome/browser/history/download_database.cc#newcode208 > ...
7 years ago (2013-12-18 23:47:49 UTC) #23
sky
On 2013/12/18 23:47:49, Tiger wrote: > On 2013/12/18 23:24:05, sky wrote: > > > https://codereview.chromium.org/102683004/diff/90001/chrome/browser/history/download_database.cc ...
7 years ago (2013-12-19 00:13:31 UTC) #24
Tiger
On 2013/12/18 23:47:49, Tiger wrote: > On 2013/12/18 23:24:05, sky wrote: > https://codereview.chromium.org/102683004/diff/90001/chrome/browser/history/download_row.h > > ...
7 years ago (2013-12-19 10:39:39 UTC) #25
Tiger
> > Unit tests that covers mime_type and original_mime_type fetching and storing > are > ...
7 years ago (2013-12-19 12:22:15 UTC) #26
sky
DB looks fine (modulo the nit below). Your other reviewers will have to comment on ...
7 years ago (2013-12-19 16:48:37 UTC) #27
Tiger
On 2013/12/19 16:48:37, sky wrote: > DB looks fine (modulo the nit below). Your other ...
7 years ago (2013-12-19 16:59:04 UTC) #28
Randy Smith (Not in Mondays)
LGTM from me, but I'm deferring to Asanka around the mime-type re-creation issue; please make ...
7 years ago (2013-12-19 23:12:07 UTC) #29
Tiger
On 2013/12/19 23:12:07, rdsmith wrote: > LGTM from me, but I'm deferring to Asanka around ...
7 years ago (2013-12-19 23:19:29 UTC) #30
asanka
Why store original_mimetype at all? Also could you respond to the comments from https://codereview.chromium.org/102683004/#msg11 ? ...
7 years ago (2013-12-20 17:58:16 UTC) #31
asanka
On 2013/12/20 17:58:16, asanka wrote: > Why store original_mimetype at all? Regarding re-sniffing the MIME ...
7 years ago (2013-12-20 19:14:24 UTC) #32
asanka
Ping?
6 years, 10 months ago (2014-01-29 21:24:09 UTC) #33
sky
Ok, LGTM
6 years, 10 months ago (2014-01-29 22:01:19 UTC) #34
jochen (gone - plz use gerrit)
lgtm
6 years, 10 months ago (2014-02-06 11:21:49 UTC) #35
asanka
Thanks everyone. LGTM from me as well. tiger@opera: Ping?
6 years, 10 months ago (2014-02-06 18:08:08 UTC) #36
Fredrik Öhrn
6 years, 6 months ago (2014-06-05 14:21:29 UTC) #37
On 2014/02/06 18:08:08, asanka wrote:
> Thanks everyone. LGTM from me as well.
> 
> tiger@opera: Ping?

Turns out this review got lost in the shuffle when Tiger moved on to a new
employer.

I've refreshed the patch resolving a reject due to an spelling fix in a comment
and reposted it to https://codereview.chromium.org/319703002/ as I wasn't
allowed to update this review.

Please head over there and rubber stamp it! :)

Powered by Google App Engine
This is Rietveld 408576698