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

Issue 2716013003: Fixes to enable indication of bytes downloaded for Offline Pages in Download Home. (Closed)

Created:
3 years, 10 months ago by Dmitry Titov
Modified:
3 years, 9 months ago
CC:
chromium-reviews, asanka, cbentzel+watch_chromium.org, dewittj+watch_chromium.org, tburkard+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, gavinp+prer_chromium.org, agrieve+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This fixes issues that prevent progress indication for Offline Pages in Download Home: - The OfflinePageItemWrapper has to produce status string. - The DownloadUIAdapter wrong hookup was causing byte counts to not update. The David's CL https://codereview.chromium.org/2704853002/ is still necessary as it adds buttons hookup. BUG=681269 Review-Url: https://codereview.chromium.org/2716013003 Cr-Commit-Position: refs/heads/master@{#453431} Committed: https://chromium.googlesource.com/chromium/src/+/07bec82ec92e1047614b17192569f69260945d42

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : more #

Total comments: 13

Patch Set 4 : nits and comments #

Patch Set 5 : fix build break #

Messages

Total messages: 33 (22 generated)
Dmitry Titov
PTAL: twellington@: DownloadHistoryItemWrapper.java fgorski@: Offlline Pages Thanks!
3 years, 10 months ago (2017-02-25 03:20:24 UTC) #9
Theresa
DownloadHistoryItemWrapper lgtm % nit https://codereview.chromium.org/2716013003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryItemWrapper.java File chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryItemWrapper.java (right): https://codereview.chromium.org/2716013003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryItemWrapper.java#newcode421 chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryItemWrapper.java:421: static final int[] BYTES_DOWNLOADED_STRINGS = ...
3 years, 9 months ago (2017-02-27 16:01:52 UTC) #12
Pete Williamson
https://codereview.chromium.org/2716013003/diff/40001/chrome/browser/android/offline_pages/prerendering_offliner.cc File chrome/browser/android/offline_pages/prerendering_offliner.cc (right): https://codereview.chromium.org/2716013003/diff/40001/chrome/browser/android/offline_pages/prerendering_offliner.cc#newcode40 chrome/browser/android/offline_pages/prerendering_offliner.cc:40: DownloadUIAdapter::FromOfflinePageModel(offline_page_model_); Should we be making a similar change to ...
3 years, 9 months ago (2017-02-27 16:13:57 UTC) #14
fgorski
lgtm with comments. https://codereview.chromium.org/2716013003/diff/40001/chrome/browser/android/offline_pages/prerendering_offliner.cc File chrome/browser/android/offline_pages/prerendering_offliner.cc (right): https://codereview.chromium.org/2716013003/diff/40001/chrome/browser/android/offline_pages/prerendering_offliner.cc#newcode40 chrome/browser/android/offline_pages/prerendering_offliner.cc:40: DownloadUIAdapter::FromOfflinePageModel(offline_page_model_); On 2017/02/27 16:13:56, Pete Williamson ...
3 years, 9 months ago (2017-02-27 16:22:56 UTC) #15
Dmitry Titov
David, could you do OWNERS look at DownloadUtils.java? I made strings for DownloadUtils.getStringForBytes() public to ...
3 years, 9 months ago (2017-02-27 20:02:18 UTC) #17
David Trainor- moved to gerrit
lgtm!
3 years, 9 months ago (2017-02-27 22:18:48 UTC) #20
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/2716013003/60001
3 years, 9 months ago (2017-02-27 22:31:29 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/219327)
3 years, 9 months ago (2017-02-27 23:12:20 UTC) #26
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/2716013003/80001
3 years, 9 months ago (2017-02-28 00:09:41 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/07bec82ec92e1047614b17192569f69260945d42
3 years, 9 months ago (2017-02-28 01:10:18 UTC) #32
Dmitry Titov
3 years, 9 months ago (2017-02-28 01:21:56 UTC) #33
Message was sent while issue was closed.
Theresa and David: I had to add a helper function to DownloadsUtil, because
FindBugs marked "public static final array" as a problem, which it is (looks
like a constant but can be modified outside).

I've added a helper function to DownloadUtils instead. Let me know if you'd like
to see something else there.

Powered by Google App Engine
This is Rietveld 408576698