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

Issue 2143303002: [Downloads] Expose basic download history to UI (Closed)

Created:
4 years, 5 months ago by gone
Modified:
4 years, 5 months ago
Reviewers:
Ian Wen, qinmin
CC:
chromium-reviews, asanka
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Downloads] Expose basic download history to UI * Adds hooks in DownloadManagerService for calling GetAllDownloads() and sending the information back to Java. This creates a List of DownloadItems that contain the basic information needed for the UI. * Adds a basic RecyclerView to display the files in the user's download history. * Adds a DownloadHistoryAdapter that is used to track information about the download history. This *should* be reusable among multiple RecyclerViews in case the user opens up multi-window mode. - This currently doesn't monitor any changes to the history and is used solely for getting a skeleton working. BUG=616324 Committed: https://crrev.com/194e406dedb9ce73fdf698deb4ec6d082931299e Cr-Commit-Position: refs/heads/master@{#405607}

Patch Set 1 #

Patch Set 2 : Cleaning up the interface #

Total comments: 13

Patch Set 3 : Comments #

Total comments: 6

Patch Set 4 : Min's comments #

Patch Set 5 : Renamed file #

Patch Set 6 : Lint #

Messages

Total messages: 22 (8 generated)
gone
Min: What do you think about the calls I've added here to the DownloadManagerService? We'll ...
4 years, 5 months ago (2016-07-14 00:50:01 UTC) #3
qinmin
https://codereview.chromium.org/2143303002/diff/20001/chrome/browser/android/download/download_manager_service.cc File chrome/browser/android/download/download_manager_service.cc (right): https://codereview.chromium.org/2143303002/diff/20001/chrome/browser/android/download/download_manager_service.cc#newcode96 chrome/browser/android/download/download_manager_service.cc:96: JNIEnv* env = base::android::AttachCurrentThread(); Since we always call onAllDownloadsRetrieved, ...
4 years, 5 months ago (2016-07-14 17:08:05 UTC) #4
gone
https://codereview.chromium.org/2143303002/diff/20001/chrome/browser/android/download/download_manager_service.cc File chrome/browser/android/download/download_manager_service.cc (right): https://codereview.chromium.org/2143303002/diff/20001/chrome/browser/android/download/download_manager_service.cc#newcode96 chrome/browser/android/download/download_manager_service.cc:96: JNIEnv* env = base::android::AttachCurrentThread(); On 2016/07/14 17:08:05, qinmin wrote: ...
4 years, 5 months ago (2016-07-14 17:11:08 UTC) #5
qinmin
https://codereview.chromium.org/2143303002/diff/20001/chrome/browser/android/download/download_manager_service.cc File chrome/browser/android/download/download_manager_service.cc (right): https://codereview.chromium.org/2143303002/diff/20001/chrome/browser/android/download/download_manager_service.cc#newcode96 chrome/browser/android/download/download_manager_service.cc:96: JNIEnv* env = base::android::AttachCurrentThread(); On 2016/07/14 17:11:08, dfalcantara wrote: ...
4 years, 5 months ago (2016-07-14 18:06:54 UTC) #6
Ian Wen
Awesome change!! I appreciate the speed and the quality! https://chromiumcodereview.appspot.com/2143303002/diff/20001/chrome/android/java/res/layout/download_history_adapter_view.xml File chrome/android/java/res/layout/download_history_adapter_view.xml (right): https://chromiumcodereview.appspot.com/2143303002/diff/20001/chrome/android/java/res/layout/download_history_adapter_view.xml#newcode8 chrome/android/java/res/layout/download_history_adapter_view.xml:8: ...
4 years, 5 months ago (2016-07-14 18:16:26 UTC) #7
gone
https://codereview.chromium.org/2143303002/diff/20001/chrome/android/java/res/layout/download_history_adapter_view.xml File chrome/android/java/res/layout/download_history_adapter_view.xml (right): https://codereview.chromium.org/2143303002/diff/20001/chrome/android/java/res/layout/download_history_adapter_view.xml#newcode8 chrome/android/java/res/layout/download_history_adapter_view.xml:8: xmlns:android="http://schemas.android.com/apk/res/android" On 2016/07/14 18:16:25, Ian Wen wrote: > Possibly ...
4 years, 5 months ago (2016-07-14 19:11:57 UTC) #8
qinmin
lgtm % comments https://codereview.chromium.org/2143303002/diff/40001/chrome/browser/android/download/download_manager_service.cc File chrome/browser/android/download/download_manager_service.cc (right): https://codereview.chromium.org/2143303002/diff/40001/chrome/browser/android/download/download_manager_service.cc#newcode111 chrome/browser/android/download/download_manager_service.cc:111: ScopedJavaLocalRef<jclass> j_download_item_class = base::android::GetClass( This looks ...
4 years, 5 months ago (2016-07-14 19:48:18 UTC) #9
Ian Wen
lgtm https://codereview.chromium.org/2143303002/diff/40001/chrome/android/java/res/layout/download_history_adapter_view.xml File chrome/android/java/res/layout/download_history_adapter_view.xml (right): https://codereview.chromium.org/2143303002/diff/40001/chrome/android/java/res/layout/download_history_adapter_view.xml#newcode7 chrome/android/java/res/layout/download_history_adapter_view.xml:7: <RelativeLayout Nit: Shall we shorten the filename a ...
4 years, 5 months ago (2016-07-14 20:13:50 UTC) #10
gone
https://codereview.chromium.org/2143303002/diff/40001/chrome/android/java/res/layout/download_history_adapter_view.xml File chrome/android/java/res/layout/download_history_adapter_view.xml (right): https://codereview.chromium.org/2143303002/diff/40001/chrome/android/java/res/layout/download_history_adapter_view.xml#newcode7 chrome/android/java/res/layout/download_history_adapter_view.xml:7: <RelativeLayout On 2016/07/14 20:13:50, Ian Wen wrote: > Nit: ...
4 years, 5 months ago (2016-07-14 20:22:58 UTC) #11
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/2143303002/80001
4 years, 5 months ago (2016-07-14 20:23:45 UTC) #14
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/2143303002/100001
4 years, 5 months ago (2016-07-14 20:27:48 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-14 22:34:42 UTC) #19
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 22:34:45 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 22:36:45 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/194e406dedb9ce73fdf698deb4ec6d082931299e
Cr-Commit-Position: refs/heads/master@{#405607}

Powered by Google App Engine
This is Rietveld 408576698