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

Issue 2796573002: Hide the download summary on file open (Closed)

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

Description

Hide the download summary on file open Notifications can be dismissed with a DownloadManager.ACTION_NOTIFICATION_CLICKED intent, which bypasses the DownloadNotificationService so we don't get a chance to hide the summary. This adds a check to the DownloadBroadcastReceiver#openDownload() path that allows us to hide any dangling summary notifications that shouldn't be visible. This also lets us catch any clicks on the summary which gives us a chance to close them out as well. BUG=699323 Review-Url: https://codereview.chromium.org/2796573002 Cr-Commit-Position: refs/heads/master@{#461744} Committed: https://chromium.googlesource.com/chromium/src/+/803fdf80f842803c7c91dca2a87419afe1b3d60c

Patch Set 1 #

Patch Set 2 : Removed strict mode policy change that was added for testing #

Patch Set 3 : Removed temporary comment #

Total comments: 1

Patch Set 4 : Added UMA action. #

Patch Set 5 : Cleaned up the logic a bit and fixed the UMA stat #

Total comments: 2

Patch Set 6 : Updated enum to use a more detailed description of the values #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -3 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadBroadcastReceiver.java View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java View 1 2 3 4 6 chunks +42 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +18 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 17 (10 generated)
David Trainor- moved to gerrit
ptal thanks!
3 years, 8 months ago (2017-04-02 17:00:36 UTC) #4
qinmin
lgtm % comment https://codereview.chromium.org/2796573002/diff/40001/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/2796573002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java#newcode173 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java:173: // other download notifications, but we ...
3 years, 8 months ago (2017-04-03 18:50:47 UTC) #7
David Trainor- moved to gerrit
isherman@ ptal at histograms.xml. Thanks!
3 years, 8 months ago (2017-04-03 21:08:00 UTC) #9
Ilya Sherman
Metrics LGTM % a nit: https://codereview.chromium.org/2796573002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2796573002/diff/80001/tools/metrics/histograms/histograms.xml#newcode29711 tools/metrics/histograms/histograms.xml:29711: +<histogram name="MobileDownload.Notification.FixingSummaryLeak" enum="Boolean"> nit: ...
3 years, 8 months ago (2017-04-04 00:07:53 UTC) #10
David Trainor- moved to gerrit
https://codereview.chromium.org/2796573002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2796573002/diff/80001/tools/metrics/histograms/histograms.xml#newcode29711 tools/metrics/histograms/histograms.xml:29711: +<histogram name="MobileDownload.Notification.FixingSummaryLeak" enum="Boolean"> On 2017/04/04 00:07:53, Ilya Sherman wrote: ...
3 years, 8 months ago (2017-04-04 15:24:16 UTC) #11
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/2796573002/100001
3 years, 8 months ago (2017-04-04 15:26:11 UTC) #14
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 16:41:26 UTC) #17
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/803fdf80f842803c7c91dca2a874...

Powered by Google App Engine
This is Rietveld 408576698