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

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

Issue 2789083002: Properly clean up notification on download open (Closed)
Patch Set: 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/DownloadNotifier.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotifier.java b/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotifier.java
index 0cc636550d15b81f04e4de6b198d59e481db1b1d..557446fe9b7b1e833befe5715f6df4337ca297f0 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotifier.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotifier.java
@@ -55,6 +55,13 @@ public interface DownloadNotifier {
void notifyDownloadCanceled(String downloadGuid);
/**
+ * Remove the download notification for an already finished download.
+ * @param notificationId The id of the download notification.
+ * @param downloadInfo Info about the removed download.
+ */
+ void removeDownloadNotification(int notificationId, DownloadInfo downloadInfo);
+
+ /**
* Called to resume all the pending download entries in SharedPreferences.
*/
void resumePendingDownloads();

Powered by Google App Engine
This is Rietveld 408576698