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

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

Issue 2815183002: IPH - Added triggers to show Download Home message (Closed)
Patch Set: findbugs 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 8612e0f71f5febb7c6e1307dbe62790c787074b7..1d6ad3aa57d5a19c5959a2d75806d444e23bb476 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
@@ -233,8 +233,8 @@ public class SystemDownloadNotifier implements DownloadNotifier, Observer {
@VisibleForTesting
void onSuccessNotificationShown(
final PendingNotificationInfo notificationInfo, final int notificationId) {
- if (notificationInfo.downloadInfo != null
- && !notificationInfo.downloadInfo.getIsOpenable()) {
+ if (notificationInfo.downloadInfo == null
+ || !notificationInfo.downloadInfo.getIsOpenable()) {
return;
}
DownloadManagerService.getDownloadManagerService().onSuccessNotificationShown(

Powered by Google App Engine
This is Rietveld 408576698