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

Issue 2805843002: Workaround for NotificationManager race condition (Closed)

Created:
3 years, 8 months ago by David Trainor- moved to gerrit
Modified:
3 years, 8 months ago
Reviewers:
qinmin
CC:
chromium-reviews, David Trainor- moved to gerrit, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Workaround for NotificationManager race condition It looks like we occasionally handle the notification click intent while the notification is still temporarily there. This check adds the notification id of the dying notification to the intent, so we can ignore it when scanning the existing notifications to see if any still require us to have our summary notification active. BUG=709560 Review-Url: https://codereview.chromium.org/2805843002 Cr-Commit-Position: refs/heads/master@{#463120} Committed: https://chromium.googlesource.com/chromium/src/+/ce4c38c5b3535bcb4a08cf2771db378aa8f278f9

Patch Set 1 #

Patch Set 2 : Handle another odd race condition case #

Total comments: 2

Patch Set 3 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -6 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadBroadcastReceiver.java View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java View 1 2 3 chunks +12 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java View 1 2 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (10 generated)
David Trainor- moved to gerrit
I'm still seeing this fail rarely :(. It looks like this intent is getting handled ...
3 years, 8 months ago (2017-04-07 06:38:38 UTC) #2
qinmin
lgtm % comments https://codereview.chromium.org/2805843002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java (right): https://codereview.chromium.org/2805843002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java#newcode84 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java:84: static final String EXTRA_NOTIFICATION_ID = can ...
3 years, 8 months ago (2017-04-07 19:03:14 UTC) #4
David Trainor- moved to gerrit
https://codereview.chromium.org/2805843002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java File chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java (right): https://codereview.chromium.org/2805843002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java#newcode84 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java:84: static final String EXTRA_NOTIFICATION_ID = On 2017/04/07 19:03:13, qinmin ...
3 years, 8 months ago (2017-04-07 20:53:55 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2805843002/40001
3 years, 8 months ago (2017-04-07 20:54:43 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/405876)
3 years, 8 months ago (2017-04-07 21:04:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2805843002/40001
3 years, 8 months ago (2017-04-07 22:10:30 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/405979)
3 years, 8 months ago (2017-04-07 22:20:11 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2805843002/40001
3 years, 8 months ago (2017-04-08 03:04:42 UTC) #16
commit-bot: I haz the power
3 years, 8 months ago (2017-04-08 03:12:48 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/ce4c38c5b3535bcb4a08cf2771db...

Powered by Google App Engine
This is Rietveld 408576698