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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryItemWrapper.java

Issue 2705283003: Added last_access_time to DownloadItem and History DB (Closed)
Patch Set: rebase origin/master Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryItemWrapper.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryItemWrapper.java b/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryItemWrapper.java
index 02af554226568fe202ec45c4d9ecf6ac20ab7b99..e36debb9d389781ecff0150836f9443f836f1c16 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryItemWrapper.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryItemWrapper.java
@@ -330,6 +330,8 @@ public abstract class DownloadHistoryItemWrapper extends TimedItem {
}
if (DownloadUtils.openFile(getFile(), getMimeType(), isOffTheRecord())) {
+ mBackendProvider.getDownloadDelegate().updateLastAccessTime(
+ mItem.getId(), isOffTheRecord());
recordOpenSuccess();
} else {
recordOpenFailure();

Powered by Google App Engine
This is Rietveld 408576698