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

Issue 833033002: Remove dependency on //content from history DownloadDatabase (Closed)

Created:
5 years, 11 months ago by sdefresne
Modified:
5 years, 11 months ago
CC:
asanka, benjhayden+dwatch_chromium.org, browser-components-watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, extensions-reviews_chromium.org, grt+watch_chromium.org, jam, sky, benjhayden
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dependency on //content from history DownloadDatabase Move the mapping between content enumeration from download_row.h and download_database.h into an embedder specific file and provide a content implementation. BUG=371836 Committed: https://crrev.com/71524662845133324432049a5e3829900451ed4e Cr-Commit-Position: refs/heads/master@{#311057}

Patch Set 1 #

Patch Set 2 : Fix unit tests and move download_database.{cc,h} #

Total comments: 4

Patch Set 3 : Address comments, use enum, fix compilation on Mac #

Patch Set 4 : Add operator<< for DCHECK/EXPECT, fix compilation on iOS & android, fix unit_tests #

Patch Set 5 : Fix #include ordering #

Patch Set 6 : Add missing conversion #

Total comments: 7

Patch Set 7 : Rebase & address comments #

Patch Set 8 : Fix missing #include #

Patch Set 9 : Fix gn compilation #

Total comments: 1

Patch Set 10 : Remove obsolete #include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+777 lines, -1336 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/download/download_history.cc View 1 2 4 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/download/download_history_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +30 lines, -26 lines 0 comments Download
M chrome/browser/download/download_ui_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/save_page_browsertest.cc View 1 2 3 10 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/history/download_database.h View 1 1 chunk +0 lines, -143 lines 0 comments Download
M chrome/browser/history/download_database.cc View 1 1 chunk +0 lines, -671 lines 0 comments Download
D chrome/browser/history/download_row.h View 1 chunk +0 lines, -111 lines 0 comments Download
D chrome/browser/history/download_row.cc View 1 chunk +0 lines, -63 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/history/history_database.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/history_database.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/history/history_service.cc View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 3 12 chunks +23 lines, -20 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/last_download_finder.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/last_download_finder.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc View 1 2 3 3 chunks +18 lines, -15 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -4 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M components/history.gypi View 1 2 3 4 5 6 2 chunks +28 lines, -0 lines 0 comments Download
A components/history/README View 1 1 chunk +13 lines, -0 lines 0 comments Download
A + components/history/content/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/history/content/browser/BUILD.gn View 1 2 4 5 6 1 chunk +5 lines, -5 lines 0 comments Download
A components/history/content/browser/download_constants_utils.h View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
A components/history/content/browser/download_constants_utils.cc View 1 2 3 1 chunk +129 lines, -0 lines 0 comments Download
A components/history/core/DEPS View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/history/core/browser/BUILD.gn View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A components/history/core/browser/download_constants.h View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
A + components/history/core/browser/download_database.h View 1 2 3 5 chunks +15 lines, -36 lines 0 comments Download
A + components/history/core/browser/download_database.cc View 1 2 3 4 5 19 chunks +71 lines, -166 lines 0 comments Download
A + components/history/core/browser/download_row.h View 1 4 chunks +28 lines, -32 lines 0 comments Download
A components/history/core/browser/download_row.cc View 1 2 3 1 chunk +65 lines, -0 lines 0 comments Download
A components/history/core/browser/download_types.h View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A components/history/core/browser/download_types.cc View 1 2 3 1 chunk +129 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (6 generated)
sdefresne
droger: Please take a look. sky: FYI as OWNERS of //chrome/browser/history and //components/history avi: OWNERS ...
5 years, 11 months ago (2015-01-05 17:40:05 UTC) #2
droger
https://codereview.chromium.org/833033002/diff/20001/components/history/content/browser/download_constants_utils.cc File components/history/content/browser/download_constants_utils.cc (right): https://codereview.chromium.org/833033002/diff/20001/components/history/content/browser/download_constants_utils.cc#newcode42 components/history/content/browser/download_constants_utils.cc:42: default: If possible get rid of the default case. ...
5 years, 11 months ago (2015-01-05 18:02:58 UTC) #3
Avi (use Gerrit)
On 2015/01/05 17:40:05, sdefresne wrote: > avi: OWNERS for the new dependency on //content from ...
5 years, 11 months ago (2015-01-05 19:53:44 UTC) #4
sdefresne
On 2015/01/05 at 19:53:44, avi wrote: > On 2015/01/05 17:40:05, sdefresne wrote: > > avi: ...
5 years, 11 months ago (2015-01-05 20:03:19 UTC) #5
sdefresne
https://codereview.chromium.org/833033002/diff/20001/components/history/content/browser/download_constants_utils.cc File components/history/content/browser/download_constants_utils.cc (right): https://codereview.chromium.org/833033002/diff/20001/components/history/content/browser/download_constants_utils.cc#newcode42 components/history/content/browser/download_constants_utils.cc:42: default: On 2015/01/05 at 18:02:58, droger wrote: > If ...
5 years, 11 months ago (2015-01-05 20:08:33 UTC) #6
Avi (use Gerrit)
On 2015/01/05 20:03:19, sdefresne wrote: > On 2015/01/05 at 19:53:44, avi wrote: > > On ...
5 years, 11 months ago (2015-01-05 20:17:07 UTC) #7
sdefresne
droger: please take another look
5 years, 11 months ago (2015-01-06 09:39:08 UTC) #8
droger
https://codereview.chromium.org/833033002/diff/100001/chrome/browser/history/download_database.cc File chrome/browser/history/download_database.cc (left): https://codereview.chromium.org/833033002/diff/100001/chrome/browser/history/download_database.cc#oldcode390 chrome/browser/history/download_database.cc:390: UMA_HISTOGRAM_COUNTS("Download.DatabaseInvalidState", state); Where did this code go? I no ...
5 years, 11 months ago (2015-01-06 10:22:18 UTC) #9
sdefresne
PTAL https://codereview.chromium.org/833033002/diff/100001/chrome/browser/history/download_database.cc File chrome/browser/history/download_database.cc (left): https://codereview.chromium.org/833033002/diff/100001/chrome/browser/history/download_database.cc#oldcode390 chrome/browser/history/download_database.cc:390: UMA_HISTOGRAM_COUNTS("Download.DatabaseInvalidState", state); On 2015/01/06 at 10:22:18, droger wrote: ...
5 years, 11 months ago (2015-01-06 10:51:17 UTC) #10
droger
https://codereview.chromium.org/833033002/diff/100001/chrome/browser/history/download_database.cc File chrome/browser/history/download_database.cc (left): https://codereview.chromium.org/833033002/diff/100001/chrome/browser/history/download_database.cc#oldcode390 chrome/browser/history/download_database.cc:390: UMA_HISTOGRAM_COUNTS("Download.DatabaseInvalidState", state); On 2015/01/06 10:51:17, sdefresne wrote: > On ...
5 years, 11 months ago (2015-01-06 11:52:18 UTC) #11
sdefresne
On 2015/01/06 at 11:52:18, droger wrote: > https://codereview.chromium.org/833033002/diff/100001/chrome/browser/history/download_database.cc > File chrome/browser/history/download_database.cc (left): > > https://codereview.chromium.org/833033002/diff/100001/chrome/browser/history/download_database.cc#oldcode390 ...
5 years, 11 months ago (2015-01-06 12:30:16 UTC) #12
droger
On 2015/01/06 12:30:16, sdefresne wrote: > Could it be an issue with how the patch ...
5 years, 11 months ago (2015-01-06 12:32:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/833033002/160001
5 years, 11 months ago (2015-01-06 16:50:52 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/33391)
5 years, 11 months ago (2015-01-06 16:58:02 UTC) #17
sdefresne
benjhayden: OWNERS of //chrome/browser/{download,extensions} jhawkins: OWNERS of //chrome/browser/{BUILD.gn,safe_browsing,ui/webui} blundell: OWNERS of //components/BUILD.gn
5 years, 11 months ago (2015-01-06 17:52:01 UTC) #19
James Hawkins
https://codereview.chromium.org/833033002/diff/160001/chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc File chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc (right): https://codereview.chromium.org/833033002/diff/160001/chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc#newcode15 chrome/browser/ui/webui/downloads_dom_handler_browsertest.cc:15: #include "components/history/core/browser/download_row.h" This include appears to be unused. Can ...
5 years, 11 months ago (2015-01-06 19:13:12 UTC) #20
blundell
//components/BUILD.gn LGTM
5 years, 11 months ago (2015-01-07 10:08:39 UTC) #21
sdefresne
I removed the obsolete #include, thank you for pointing them. benjhayden, jhawkins: please take a ...
5 years, 11 months ago (2015-01-07 10:51:25 UTC) #22
James Hawkins
lgtm
5 years, 11 months ago (2015-01-07 17:31:59 UTC) #23
sdefresne
ping
5 years, 11 months ago (2015-01-08 09:37:04 UTC) #24
sky
Pro-tip, when you have multiple reviewers please indicate who you are ping'ing (I assuming not ...
5 years, 11 months ago (2015-01-08 22:44:57 UTC) #25
sdefresne
Moving to OWNERS in upper directory in the hierarchy since benjhayden is not responding. phajdan.jr: ...
5 years, 11 months ago (2015-01-09 09:32:54 UTC) #27
Finnur
Easiest review evar. :) c/b/e LGTM.
5 years, 11 months ago (2015-01-12 10:23:25 UTC) #28
Paweł Hajdan Jr.
chrome/browser/download LGTM
5 years, 11 months ago (2015-01-12 15:38:09 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/833033002/180001
5 years, 11 months ago (2015-01-12 15:42:31 UTC) #31
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 11 months ago (2015-01-12 16:24:38 UTC) #32
commit-bot: I haz the power
5 years, 11 months ago (2015-01-12 16:25:35 UTC) #33
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/71524662845133324432049a5e3829900451ed4e
Cr-Commit-Position: refs/heads/master@{#311057}

Powered by Google App Engine
This is Rietveld 408576698