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

Issue 2720613002: Downloads: Added transient flag to download item and download database (Closed)

Created:
3 years, 9 months ago by shaktisahu
Modified:
3 years, 4 months ago
CC:
chromium-reviews, asanka, extensions-reviews_chromium.org, msramek+watch_chromium.org, ntp-dev+reviews_chromium.org, grt+watch_chromium.org, jam, darin-cc_chromium.org, noyau+watch_chromium.org, agrieve+watch_chromium.org, chromium-apps-reviews_chromium.org, markusheintz_
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Downloads: Added transient flag to download item and download database This CL adds a transient flag to the download items and database. This boolean can be used in future by any feature that wants to have download items that are temporary and should not be shown on the UI. BUG=700240 Review-Url: https://codereview.chromium.org/2720613002 Cr-Commit-Position: refs/heads/master@{#460833} Committed: https://chromium.googlesource.com/chromium/src/+/fd49a3edab3d755944e10202569fe90f12f32bbb

Patch Set 1 #

Patch Set 2 : Fixed migration unit test #

Total comments: 9

Patch Set 3 : rebase #

Patch Set 4 : Dont propagate to Java layer #

Patch Set 5 : fix tests #

Total comments: 1

Patch Set 6 : Rebase #

Patch Set 7 : Renamed to transient #

Total comments: 11

Patch Set 8 : addressed comments #

Patch Set 9 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -41 lines) Patch
M chrome/browser/android/download/download_manager_service.cc View 1 2 3 4 5 6 7 5 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/apps/guest_view/web_view_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browsing_data/downloads_counter_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_history.cc View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/download/download_history_unittest.cc View 1 2 3 4 5 6 7 5 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/download/download_ui_controller_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/history/core/browser/download_database.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M components/history/core/browser/download_database.cc View 1 2 3 4 5 6 7 8 chunks +16 lines, -7 lines 0 comments Download
M components/history/core/browser/download_row.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M components/history/core/browser/download_row.cc View 1 2 3 4 5 6 7 4 chunks +6 lines, -2 lines 0 comments Download
M components/history/core/browser/history_backend_db_unittest.cc View 1 2 3 4 5 6 7 8 9 chunks +46 lines, -7 lines 0 comments Download
M components/history/core/browser/history_database.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -1 line 0 comments Download
M components/history/core/test/history_backend_db_base_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 7 chunks +7 lines, -7 lines 0 comments Download
M content/browser/download/download_item_factory.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/download_item_impl.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/download/download_manager_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 4 5 6 4 chunks +4 lines, -2 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -1 line 0 comments Download
M content/browser/download/mock_download_item_impl.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/download_item.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/download_manager.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/fake_download_item.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/fake_download_item.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/test/mock_download_item.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/mock_download_manager.h View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M content/public/test/mock_download_manager.cc View 1 2 3 4 5 6 5 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 79 (58 generated)
shaktisahu
dtrainor@ - PTAL.
3 years, 9 months ago (2017-03-01 22:52:10 UTC) #11
David Trainor- moved to gerrit
https://codereview.chromium.org/2720613002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadInfo.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadInfo.java (right): https://codereview.chromium.org/2720613002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadInfo.java#newcode158 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadInfo.java:158: public boolean isVisible() { Do we want to make ...
3 years, 9 months ago (2017-03-06 18:28:40 UTC) #12
vitaliii
Drive-by question. https://codereview.chromium.org/2720613002/diff/20001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): https://codereview.chromium.org/2720613002/diff/20001/content/browser/download/download_item_impl.cc#newcode784 content/browser/download/download_item_impl.cc:784: return visible_; Could you add any comment ...
3 years, 9 months ago (2017-03-07 07:58:56 UTC) #13
shaktisahu
dtrainor@ - PTAL https://codereview.chromium.org/2720613002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadInfo.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadInfo.java (right): https://codereview.chromium.org/2720613002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadInfo.java#newcode158 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadInfo.java:158: public boolean isVisible() { On 2017/03/06 ...
3 years, 9 months ago (2017-03-08 06:51:30 UTC) #24
dgn
drive-by follow up question https://codereview.chromium.org/2720613002/diff/20001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): https://codereview.chromium.org/2720613002/diff/20001/content/browser/download/download_item_impl.cc#newcode784 content/browser/download/download_item_impl.cc:784: return visible_; On 2017/03/08 06:51:30, ...
3 years, 9 months ago (2017-03-08 13:12:04 UTC) #32
David Trainor- moved to gerrit
On 2017/03/08 13:12:04, dgn wrote: > drive-by follow up question > > https://codereview.chromium.org/2720613002/diff/20001/content/browser/download/download_item_impl.cc > File ...
3 years, 9 months ago (2017-03-09 17:06:58 UTC) #33
shaktisahu
sdefresne@ - PTAL at comp/history
3 years, 9 months ago (2017-03-10 18:21:34 UTC) #38
sdefresne
components/history lgtm
3 years, 9 months ago (2017-03-13 08:59:24 UTC) #39
David Trainor- moved to gerrit
lgtm % nits. File a bug to look into implementing this for other platforms.
3 years, 9 months ago (2017-03-14 15:13:10 UTC) #40
shaktisahu
sky@ - PTAL
3 years, 9 months ago (2017-03-14 18:25:33 UTC) #42
sky
sky->brettw
3 years, 9 months ago (2017-03-14 20:29:04 UTC) #44
brettw
I don't understand the motivation or why a database change is required. Is there a ...
3 years, 9 months ago (2017-03-20 20:36:29 UTC) #45
shaktisahu
On 2017/03/20 20:36:29, brettw (plz ping after 24h) wrote: > I don't understand the motivation ...
3 years, 9 months ago (2017-03-23 20:43:13 UTC) #46
shaktisahu
On 2017/03/23 20:43:13, shaktisahu wrote: > On 2017/03/20 20:36:29, brettw (plz ping after 24h) wrote: ...
3 years, 9 months ago (2017-03-27 23:38:48 UTC) #48
brettw
Sorry for the delay! https://codereview.chromium.org/2720613002/diff/140001/chrome/browser/android/download/download_manager_service.cc File chrome/browser/android/download/download_manager_service.cc (right): https://codereview.chromium.org/2720613002/diff/140001/chrome/browser/android/download/download_manager_service.cc#newcode60 chrome/browser/android/download/download_manager_service.cc:60: DCHECK(item->IsTransient()); I don't follow this ...
3 years, 8 months ago (2017-03-29 22:54:13 UTC) #49
shaktisahu
brettw@ - I had forgot to flip the value of the boolean after renaming IsVisible ...
3 years, 8 months ago (2017-03-29 23:46:47 UTC) #50
brettw
lgtm
3 years, 8 months ago (2017-03-30 16:42:07 UTC) #70
brettw
I forgot to publish this comment: https://codereview.chromium.org/2720613002/diff/140001/components/history/core/browser/download_row.h File components/history/core/browser/download_row.h (right): https://codereview.chromium.org/2720613002/diff/140001/components/history/core/browser/download_row.h#newcode50 components/history/core/browser/download_row.h:50: bool transient, I ...
3 years, 8 months ago (2017-03-30 16:44:44 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2720613002/240001
3 years, 8 months ago (2017-03-30 18:28:59 UTC) #74
commit-bot: I haz the power
Committed patchset #9 (id:240001) as https://chromium.googlesource.com/chromium/src/+/fd49a3edab3d755944e10202569fe90f12f32bbb
3 years, 8 months ago (2017-03-30 18:36:07 UTC) #77
brettw
3 years, 4 months ago (2017-08-01 18:08:59 UTC) #79
Message was sent while issue was closed.
Can you please follow-up on the review comments here?

Powered by Google App Engine
This is Rietveld 408576698