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

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

Issue 2726423002: Fix DownloadNotificationService foreground state (Closed)
Patch Set: Fix spelling mistake 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/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 c27a7826f4bd10a1b15e6edf067517799715ca6f..85a6c7786c872e1c8a22d066faae17c8e92fb20e 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
@@ -299,7 +299,9 @@ public class SystemDownloadNotifier implements DownloadNotifier, Observer {
assert false;
}
- if (mBoundService != null) mBoundService.hideSummaryNotificationIfNecessary();
+ // Don't need to expose the notification id to ignore. Cancel will automatically call this
+ // method as well and pass it in.
+ if (mBoundService != null) mBoundService.hideSummaryNotificationIfNecessary(null);
if (autoRelease) unbindServiceIfNeeded();
}
}

Powered by Google App Engine
This is Rietveld 408576698