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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/download/SystemDownloadNotifier.java

Issue 2861863002: offline_items_collection : Added helper class to determine progress (Closed)
Patch Set: comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/download/SystemDownloadNotifier.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/download/SystemDownloadNotifier.java b/chrome/android/java/src/org/chromium/chrome/browser/download/SystemDownloadNotifier.java
index 9926c1525c3b4352a1db58e95c848127ddabf965..74f22db6adfa69fc0cf97c2fad2bef96ba11b9e4 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/download/SystemDownloadNotifier.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/download/SystemDownloadNotifier.java
@@ -268,7 +268,7 @@ public class SystemDownloadNotifier implements DownloadNotifier, Observer {
switch (notificationInfo.type) {
case DOWNLOAD_NOTIFICATION_TYPE_PROGRESS:
mBoundService.notifyDownloadProgress(info.getContentId(), info.getFileName(),
- info.getPercentCompleted(), info.getBytesReceived(),
+ info.getProgress(), info.getBytesReceived(),
info.getTimeRemainingInMillis(), notificationInfo.startTime,
info.isOffTheRecord(), notificationInfo.canDownloadWhileMetered,
info.getIsTransient(), info.getIcon());

Powered by Google App Engine
This is Rietveld 408576698