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

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

Issue 2230603003: [Offline pages] Downloads UI: Extening DownloadSharedPreferenceEntry to include offline page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding OWNERS file to the tests Created 4 years, 4 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/download/DownloadSharedPreferenceEntry.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java b/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java
index 176f55cc9886fa06635290d7d06ce97523e5b8da..89f83c56ebf35d11a8be3be22582c91b94284e50 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java
@@ -219,8 +219,9 @@ public class DownloadNotificationService extends Service {
}
}
int notificationId = getNotificationId(downloadGuid);
- addOrReplaceSharedPreferenceEntry(new DownloadSharedPreferenceEntry(
- notificationId, isOffTheRecord, canDownloadWhileMetered, downloadGuid, fileName));
+ addOrReplaceSharedPreferenceEntry(new DownloadSharedPreferenceEntry(notificationId,
+ isOffTheRecord, canDownloadWhileMetered, downloadGuid, fileName,
+ DownloadSharedPreferenceEntry.ITEM_TYPE_DOWNLOAD));
if (startTime > 0) builder.setWhen(startTime);
Intent cancelIntent = buildActionIntent(
ACTION_DOWNLOAD_CANCEL, notificationId, downloadGuid, fileName);
@@ -423,8 +424,8 @@ public class DownloadNotificationService extends Service {
boolean metered = DownloadManagerService.isActiveNetworkMetered(mContext);
boolean isOffTheRecord = IntentUtils.safeGetBooleanExtra(
intent, EXTRA_DOWNLOAD_IS_OFF_THE_RECORD, false);
- return new DownloadSharedPreferenceEntry(
- notificationId, isOffTheRecord, metered, guid, fileName);
+ return new DownloadSharedPreferenceEntry(notificationId, isOffTheRecord, metered, guid,
+ fileName, DownloadSharedPreferenceEntry.ITEM_TYPE_DOWNLOAD);
}
/**
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/download/DownloadSharedPreferenceEntry.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698