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

Issue 2861863002: offline_items_collection : Added helper class to determine progress (Closed)

Created:
3 years, 7 months ago by shaktisahu
Modified:
3 years, 7 months ago
CC:
chromium-reviews, Peter Beverloo, David Trainor- moved to gerrit, harkness+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

offline_items_collection : Added helper class to determine progress Added a struct in OfflineItem to contain the current progress value, max value and progress unit. The progress unit can be bytes, files or percent. The information should be set in native and subsequently it is passed to java where various types of messages such as "x files left" or "x seconds left" is shown in the notifications and download home. BUG=718673 Review-Url: https://codereview.chromium.org/2861863002 Cr-Commit-Position: refs/heads/master@{#470683} Committed: https://chromium.googlesource.com/chromium/src/+/fa97f9c932cf4a69a4952a3f962782906390a18e

Patch Set 1 #

Patch Set 2 : more #

Total comments: 14

Patch Set 3 : comments #

Patch Set 4 : Replaced percent with progress in java layer #

Patch Set 5 : findbugs #

Total comments: 10

Patch Set 6 : comments #

Patch Set 7 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+375 lines, -183 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadInfo.java View 1 2 3 10 chunks +14 lines, -14 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadItem.java View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java View 1 2 3 4 5 9 chunks +14 lines, -74 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java View 1 2 3 4 5 5 chunks +98 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/SystemDownloadNotifier.java View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryItemWrapper.java View 1 2 3 4 5 chunks +9 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadItemView.java View 1 2 3 3 chunks +9 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageNotificationBridge.java View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadManagerServiceTest.java View 1 2 3 3 chunks +26 lines, -12 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadNotificationServiceTest.java View 1 2 3 4 5 4 chunks +5 lines, -46 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadUtilsTest.java View 1 2 3 4 5 3 chunks +79 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/MockDownloadNotificationService.java View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/ui/StubbedProvider.java View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M components/offline_items_collection/core/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItem.java View 1 2 3 4 5 6 2 chunks +52 lines, -1 line 0 comments Download
M components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/bridges/OfflineItemBridge.java View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M components/offline_items_collection/core/android/offline_item_bridge.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M components/offline_items_collection/core/offline_item.h View 1 2 4 chunks +31 lines, -4 lines 0 comments Download
M components/offline_items_collection/core/offline_item.cc View 1 2 3 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (22 generated)
David Trainor- moved to gerrit
https://codereview.chromium.org/2861863002/diff/20001/components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItem.java File components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItem.java (right): https://codereview.chromium.org/2861863002/diff/20001/components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItem.java#newcode19 components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItem.java:19: * Contains relevant pieces of information to determine the ...
3 years, 7 months ago (2017-05-03 22:06:32 UTC) #2
shaktisahu
PTAL https://codereview.chromium.org/2861863002/diff/20001/components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItem.java File components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItem.java (right): https://codereview.chromium.org/2861863002/diff/20001/components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItem.java#newcode19 components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItem.java:19: * Contains relevant pieces of information to determine ...
3 years, 7 months ago (2017-05-05 02:09:37 UTC) #7
David Trainor- moved to gerrit
lgtm % nits thanks! https://codereview.chromium.org/2861863002/diff/70001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java (right): https://codereview.chromium.org/2861863002/diff/70001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java#newcode594 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java:594: public static String getTimeOrFilesLeftString( Should ...
3 years, 7 months ago (2017-05-09 05:36:02 UTC) #10
shaktisahu
twellington@ - PTAL at chrome/browser/download/ui/*.java https://codereview.chromium.org/2861863002/diff/70001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java (right): https://codereview.chromium.org/2861863002/diff/70001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java#newcode594 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java:594: public static String getTimeOrFilesLeftString( ...
3 years, 7 months ago (2017-05-09 19:04:32 UTC) #14
Theresa
download/ui lgtm
3 years, 7 months ago (2017-05-10 00:18:57 UTC) #17
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/2861863002/110001
3 years, 7 months ago (2017-05-10 20:10:12 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 20:25:41 UTC) #29
Message was sent while issue was closed.
Committed patchset #7 (id:110001) as
https://chromium.googlesource.com/chromium/src/+/fa97f9c932cf4a69a4952a3f9627...

Powered by Google App Engine
This is Rietveld 408576698