Downloads : Last access time update for NTP and notifications
This CL tries to update the last access time for a download item correctly.
The download items have several clients and the access does not go through
a common code path. One option is to look at the file system's last access
time (atime in Unix) and update it from a non-UI thread task. However, it
was found that the last access time is not updated or at best lazily updated
by most of the POSIX systems in case of a file read. So the other approach
is to update the last access time manually whenever the file is opened
through chrome. NTP, download infobar, duplicate download infobar,
download home and download notification are the entry points where
we fire an intent to open the downloaded file. To find the download
item, we need a GUID and the correct profile which was passed correctly
to the appropriate call sites.
BUG=
689981
Review-Url:
https://codereview.chromium.org/2737723002
Cr-Commit-Position: refs/heads/master@{#456211}
Committed:
https://chromium.googlesource.com/chromium/src/+/aa394d93072283f792da83ae88412562169539e3