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

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

Issue 2848723004: Fix an issue that notification is not posted if download is interrupted on start (Closed)
Patch Set: Created 3 years, 8 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 8e9751e3d50f119b75d5488fef8dcd7b9cbb20c3..8ec4f64b5cec9350a2c1e6cfaa982f9895bdb7d7 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
@@ -275,11 +275,13 @@ public class SystemDownloadNotifier implements DownloadNotifier, Observer {
break;
case DOWNLOAD_NOTIFICATION_TYPE_PAUSE:
mBoundService.notifyDownloadPaused(
- info.getContentId(), true, false, info.getIsTransient(), info.getIcon());
+ info.getContentId(), info.getFileName(), true, false, info.isOffTheRecord(),
+ info.getIsTransient(), info.getIcon());
break;
case DOWNLOAD_NOTIFICATION_TYPE_INTERRUPT:
- mBoundService.notifyDownloadPaused(info.getContentId(), info.isResumable(),
- notificationInfo.isAutoResumable, info.getIsTransient(), info.getIcon());
+ mBoundService.notifyDownloadPaused(info.getContentId(), info.getFileName(),
+ info.isResumable(), notificationInfo.isAutoResumable, info.isOffTheRecord(),
+ info.getIsTransient(), info.getIcon());
break;
case DOWNLOAD_NOTIFICATION_TYPE_SUCCESS:
final int notificationId = mBoundService.notifyDownloadSuccessful(

Powered by Google App Engine
This is Rietveld 408576698