|
Added last_access_time to DownloadItem and History DB
Added the last access time for a download item. If the item has not
been accessed yet, it should default to 0. This involves adding a
column to the History DB and migrating the older versions to have
the same default value for this field.
Download home and DownloadSnackbarController currently open the
download item directly. Since they use the filename to open the
file directly, the native DownloadItem::Open() is not called from
android. So a public method UpdateLastAccessTime was added to
DownloadItem and hence DownloadServiceManager to directly update
last access time.
Probably we should change all the download open paths to use native
DownloadItem::Open in future.
BUG= 689981
Review-Url: https://codereview.chromium.org/2705283003
Cr-Commit-Position: refs/heads/master@{#454548}
Committed: https://chromium.googlesource.com/chromium/src/+/60eb97fc48ad3a8df63c8b17aacb30985af52dd1
Total comments: 12
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+282 lines, -135 lines) |
Patch |
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadInfo.java
|
View
|
1
2
3
4
5
6
7
|
7 chunks |
+22 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java
|
View
|
1
2
3
4
6
|
3 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/ui/BackendProvider.java
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryItemWrapper.java
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/android/javatests/src/org/chromium/chrome/browser/download/ui/StubbedProvider.java
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/download/download_manager_service.h
|
View
|
1
2
3
4
6
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/android/download/download_manager_service.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+17 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/apps/guest_view/web_view_browsertest.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/browsing_data/downloads_counter_browsertest.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+5 lines, -21 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_history.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_history_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+36 lines, -32 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 |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ntp_snippets/fake_download_item.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ntp_snippets/fake_download_item.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+11 lines, -2 lines |
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 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/history/core/browser/download_database.cc
|
View
|
|
8 chunks |
+19 lines, -8 lines |
0 comments
|
Download
|
 |
M |
components/history/core/browser/download_row.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/history/core/browser/download_row.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/history/core/browser/history_backend_db_unittest.cc
|
View
|
1
2
3
4
|
11 chunks |
+22 lines, -15 lines |
0 comments
|
Download
|
 |
M |
components/history/core/browser/history_database.cc
|
View
|
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/history/core/test/history_backend_db_base_test.cc
|
View
|
1
2
3
|
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
7
8
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_item_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
|
4 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_item_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+14 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_manager_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_manager_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_manager_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/mock_download_item_impl.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/mock_download_item_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/download_item.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/download_manager.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/public/test/mock_download_item.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/test/mock_download_manager.h
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/public/test/mock_download_manager.cc
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+10 lines, -5 lines |
0 comments
|
Download
|
Total messages: 72 (55 generated)
|