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

Issue 1993873003: deprecate notificationId for downloads (Closed)

Created:
4 years, 7 months ago by qinmin
Modified:
4 years, 6 months ago
Reviewers:
Ted C
CC:
chromium-reviews, asanka, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

deprecate notificationId for downloads The downloadId is going to be deprecated, and it is replaced by downloadGuid. Android currently use the downloadId as notificationId. This should also be deprecated. This change generates a new notificationId for each newly added download. And a SharedPref entry is used to record the next notificationId to be generated BUG=613014 Committed: https://crrev.com/b935b5d8c1675d06e6733483ba5ff56ed22906ae Cr-Commit-Position: refs/heads/master@{#396254}

Patch Set 1 #

Total comments: 9

Patch Set 2 : nits #

Patch Set 3 : rebase #

Patch Set 4 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -178 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadItem.java View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadManagerService.java View 9 chunks +40 lines, -48 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java View 1 2 12 chunks +56 lines, -19 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotifier.java View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadSharedPreferenceEntry.java View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadSnackbarController.java View 1 4 chunks +27 lines, -9 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/SystemDownloadNotifier.java View 1 2 3 8 chunks +43 lines, -20 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadManagerServiceTest.java View 16 chunks +50 lines, -19 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/DownloadNotificationServiceTest.java View 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/MockDownloadNotificationService.java View 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/download/SystemDownloadNotifierTest.java View 1 2 3 3 chunks +10 lines, -5 lines 0 comments Download
M content/browser/android/download_controller_android_impl.cc View 3 chunks +4 lines, -5 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/DownloadController.java View 7 chunks +7 lines, -18 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/DownloadInfo.java View 6 chunks +0 lines, -13 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
qinmin
PTAL
4 years, 7 months ago (2016-05-19 00:09:19 UTC) #2
Ted C
https://codereview.chromium.org/1993873003/diff/1/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/1993873003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java#newcode56 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java:56: static final String NOTIFICATION_NAMESPACE = "DownloadNotificationService"; rename DEPRECATED? https://codereview.chromium.org/1993873003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java#newcode58 ...
4 years, 7 months ago (2016-05-20 00:02:13 UTC) #3
qinmin
https://codereview.chromium.org/1993873003/diff/1/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/1993873003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java#newcode56 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java:56: static final String NOTIFICATION_NAMESPACE = "DownloadNotificationService"; On 2016/05/20 00:02:13, ...
4 years, 7 months ago (2016-05-23 23:03:14 UTC) #4
Ted C
lgtm https://codereview.chromium.org/1993873003/diff/1/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/1993873003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java#newcode58 chrome/android/java/src/org/chromium/chrome/browser/download/DownloadNotificationService.java:58: private static final String NEXT_DOWNLOAD_NOTIFICATION_ID = "NextDownloadNotificationId"; On ...
4 years, 7 months ago (2016-05-23 23:15:23 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1993873003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1993873003/40001
4 years, 6 months ago (2016-05-25 23:32:46 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/72217)
4 years, 6 months ago (2016-05-26 00:29:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1993873003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1993873003/60001
4 years, 6 months ago (2016-05-26 18:28:21 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-05-26 19:33:15 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-05-26 19:35:14 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b935b5d8c1675d06e6733483ba5ff56ed22906ae
Cr-Commit-Position: refs/heads/master@{#396254}

Powered by Google App Engine
This is Rietveld 408576698