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

Issue 2269353004: [Android Download] Show a progress bar before backend is loaded (Closed)

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

Description

[Android Download] Show a progress bar before backend is loaded This CL implements a loading view (aka progress bar) in download manager UI on Android. It is slightly trickier to handle state changes on Tablets, because when the download ui is initialized, a filter is already set in the URL. Therefore we cache the filter temporarily in the manager, and will show it after we load everything. There are three possible types of backend the UI needs to wait: incognito downloads, downloads and offline apges. The UI will only claim it is loaded if all of them are loaed. TODO(ianwen): add a timeout mechanisim to either the DownloadLoadingDelegate or to the backend so that if it takes forever to load one of the backend, users are still able to see the other two. BUG=616324 Committed: https://crrev.com/36e2d9412a3ec3dcd7b0efbb2e2ecb8b33c0f728 Cr-Commit-Position: refs/heads/master@{#414369}

Patch Set 1 #

Total comments: 16

Patch Set 2 : comments #

Patch Set 3 : rebase #

Patch Set 4 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -27 lines) Patch
M chrome/android/java/res/layout/download_content.xml View 1 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java View 1 2 6 chunks +71 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadManagerUi.java View 1 2 5 chunks +8 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapterTest.java View 1 2 3 3 chunks +19 lines, -19 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (10 generated)
Ian Wen
PTAL
4 years, 4 months ago (2016-08-24 21:41:30 UTC) #2
gone
Move that TODO in your CL message into the code itself. It's lost, otherwise. https://codereview.chromium.org/2269353004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java ...
4 years, 4 months ago (2016-08-24 21:54:12 UTC) #3
gone
lgtm % comments and moving the TODO into code somewhere (maybe the LoadingDelegate class comment) ...
4 years, 4 months ago (2016-08-24 21:55:59 UTC) #4
Ian Wen
https://chromiumcodereview.appspot.com/2269353004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java File chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java (right): https://chromiumcodereview.appspot.com/2269353004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java#newcode114 chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java:114: if (mLoadingDelegate.isLoaded()) filter(mLoadingDelegate.getPendingFilter()); On 2016/08/24 21:54:11, dfalcantara wrote: > ...
4 years, 3 months ago (2016-08-25 04:13:35 UTC) #5
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/2269353004/20001
4 years, 3 months ago (2016-08-25 05:34:24 UTC) #8
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/2269353004/40001
4 years, 3 months ago (2016-08-25 05:57:44 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/129659)
4 years, 3 months ago (2016-08-25 07:23:02 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/2269353004/60001
4 years, 3 months ago (2016-08-25 08:23:01 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-08-25 09:10:24 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 09:14:13 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/36e2d9412a3ec3dcd7b0efbb2e2ecb8b33c0f728
Cr-Commit-Position: refs/heads/master@{#414369}

Powered by Google App Engine
This is Rietveld 408576698