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

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

Issue 2726423002: Fix DownloadNotificationService foreground state (Closed)
Patch Set: Created 3 years, 10 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 7e5d29ab6327fea0892be23f86dbe334f065a1db..768ca2e6304ee3711bbca1d1b7c8156b7d005353 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
@@ -298,7 +298,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