Index: chrome/android/javatests/src/org/chromium/chrome/browser/download/ui/StubbedProvider.java |
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/download/ui/StubbedProvider.java b/chrome/android/javatests/src/org/chromium/chrome/browser/download/ui/StubbedProvider.java |
index 4fc883cad9a5f30f8c5299fb80f5ca9e2f03168a..d0ebc58e662b4d90e30ec13f7c2039267824fe57 100644 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/download/ui/StubbedProvider.java |
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/download/ui/StubbedProvider.java |
@@ -20,6 +20,8 @@ import org.chromium.chrome.browser.download.DownloadItem; |
import org.chromium.chrome.browser.offlinepages.downloads.OfflinePageDownloadBridge; |
import org.chromium.chrome.browser.offlinepages.downloads.OfflinePageDownloadItem; |
import org.chromium.chrome.browser.widget.selection.SelectionDelegate; |
+import org.chromium.components.offline_items_collection.OfflineItem.Progress; |
+import org.chromium.components.offline_items_collection.OfflineItemProgressUnit; |
import org.chromium.content_public.browser.DownloadState; |
import java.text.SimpleDateFormat; |
@@ -314,7 +316,7 @@ public class StubbedProvider implements BackendProvider { |
} |
builder.setIsOffTheRecord(isIncognito); |
- builder.setPercentCompleted(percent); |
+ builder.setProgress(new Progress(100, 100L, OfflineItemProgressUnit.PERCENTAGE)); |
builder.setState(state); |
DownloadItem item = new DownloadItem(false, builder.build()); |