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

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

Issue 2768953002: Initial work to move downloads to ContentIds (Closed)
Patch Set: Rebase because of a conflict... with a single. import. :( Created 3 years, 9 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/DownloadUtils.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java b/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java
index 446acfb0f2e1faf33362813f7f6e2d71e3b782d2..e28bcd3c80158d7fe4edbb523ba5c86ec790cfde 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadUtils.java
@@ -564,7 +564,8 @@ public class DownloadUtils {
}
DownloadSharedPreferenceHelper helper = DownloadSharedPreferenceHelper.getInstance();
- DownloadSharedPreferenceEntry entry = helper.getDownloadSharedPreferenceEntry(item.getId());
+ DownloadSharedPreferenceEntry entry =
+ helper.getDownloadSharedPreferenceEntry(item.getContentId());
boolean isDownloadPending =
entry != null && state == DownloadState.INTERRUPTED && entry.isAutoResumable;
@@ -600,7 +601,8 @@ public class DownloadUtils {
*/
public static boolean isDownloadPaused(DownloadItem item) {
DownloadSharedPreferenceHelper helper = DownloadSharedPreferenceHelper.getInstance();
- DownloadSharedPreferenceEntry entry = helper.getDownloadSharedPreferenceEntry(item.getId());
+ DownloadSharedPreferenceEntry entry =
+ helper.getDownloadSharedPreferenceEntry(item.getContentId());
if (entry != null) {
// The Java downloads backend knows more about the download than the native backend.

Powered by Google App Engine
This is Rietveld 408576698