Index: chrome/android/javatests/src/org/chromium/chrome/browser/download/MockDownloadNotificationService.java |
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/download/MockDownloadNotificationService.java b/chrome/android/javatests/src/org/chromium/chrome/browser/download/MockDownloadNotificationService.java |
index 43e4e9f01683690d65e14cbb49e525748b608225..1e7f39381aba79d950a6c82cc751acac35ecb935 100644 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/download/MockDownloadNotificationService.java |
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/download/MockDownloadNotificationService.java |
@@ -11,6 +11,7 @@ import android.util.Pair; |
import org.chromium.base.ThreadUtils; |
import org.chromium.components.offline_items_collection.ContentId; |
+import org.chromium.components.offline_items_collection.OfflineItem.Progress; |
import java.util.ArrayList; |
import java.util.List; |
@@ -110,14 +111,14 @@ public class MockDownloadNotificationService extends DownloadNotificationService |
@Override |
public void notifyDownloadProgress(final ContentId id, final String fileName, |
- final int percentage, final long bytesReceived, final long timeRemainingInMillis, |
+ final Progress progress, final long bytesReceived, final long timeRemainingInMillis, |
final long startTime, final boolean isOffTheRecord, |
final boolean canDownloadWhileMetered, final boolean isTransient, final Bitmap icon) { |
ThreadUtils.runOnUiThreadBlocking(new Runnable() { |
@Override |
public void run() { |
- MockDownloadNotificationService.super.notifyDownloadProgress(id, fileName, |
- percentage, bytesReceived, timeRemainingInMillis, startTime, isOffTheRecord, |
+ MockDownloadNotificationService.super.notifyDownloadProgress(id, fileName, progress, |
+ bytesReceived, timeRemainingInMillis, startTime, isOffTheRecord, |
canDownloadWhileMetered, isTransient, icon); |
} |
}); |