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

Issue 2316263002: Notifications in sensitive contexts now display origin + small icon (Closed)

Created:
4 years, 3 months ago by Anita
Modified:
4 years, 3 months ago
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Notifications in sensitive contexts now display origin + small icon BUG=498716 Committed: https://crrev.com/b75661d3d5c5924cffc942945d79d0430b812e1c Cr-Commit-Position: refs/heads/master@{#418817}

Patch Set 1 : Notifications in sensitive contexts now display origin + small icon #

Total comments: 9

Patch Set 2 : Tweaked string description + use normal Notification builder in tests #

Patch Set 3 : Moved public notification creation and icon generation to NotificationBuilderBase #

Total comments: 24

Patch Set 4 : Review comments #

Total comments: 9

Patch Set 5 : Notifications in sensitive contexts now display origin + small icon #

Unified diffs Side-by-side diffs Delta from patch set Stats (+291 lines, -114 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilder.java View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java View 1 2 3 4 6 chunks +112 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java View 1 2 6 chunks +1 line, -52 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilder.java View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationBuilderBaseTest.java View 1 2 3 1 chunk +80 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeTest.java View 1 2 3 7 chunks +45 lines, -58 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.java View 1 2 3 2 chunks +29 lines, -2 lines 0 comments Download

Messages

Total messages: 48 (29 generated)
awdf
Screenshots available at https://drive.google.com/open?id=0B4fXBlY3PNasVmRuc2FacVFvcTA showing before/after Patch Set 1 on Android L, M and N, ...
4 years, 3 months ago (2016-09-09 09:45:45 UTC) #11
awdf
what do you think about refactoring as per my comment? screenshots are up to date ...
4 years, 3 months ago (2016-09-09 09:51:01 UTC) #13
Peter Beverloo
Cool, this is good :) Thanks! Some opinions follow. As mentioned on chat, you can ...
4 years, 3 months ago (2016-09-09 12:53:31 UTC) #16
awdf
On 2016/09/09 09:45:45, awdf wrote: > Screenshots available at > https://drive.google.com/open?id=0B4fXBlY3PNasVmRuc2FacVFvcTA showing > before/after Patch ...
4 years, 3 months ago (2016-09-09 13:08:32 UTC) #17
awdf
https://codereview.chromium.org/2316263002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java (right): https://codereview.chromium.org/2316263002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java#newcode586 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java:586: private Notification createPublicNotification(Bitmap badge, String originForDisplay) { On 2016/09/09 ...
4 years, 3 months ago (2016-09-09 15:55:26 UTC) #19
Peter Beverloo
https://codereview.chromium.org/2316263002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java (right): https://codereview.chromium.org/2316263002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java#newcode586 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java:586: private Notification createPublicNotification(Bitmap badge, String originForDisplay) { On 2016/09/09 ...
4 years, 3 months ago (2016-09-09 15:58:23 UTC) #20
awdf
4 years, 3 months ago (2016-09-12 16:26:22 UTC) #22
Peter Beverloo
This looks great, thank you! I have a few suggestions, and otherwise some nits. https://codereview.chromium.org/2316263002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java ...
4 years, 3 months ago (2016-09-12 17:52:03 UTC) #24
awdf
I rebased so there's some irrelevant changes between the latest diffs. https://codereview.chromium.org/2316263002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java (right): ...
4 years, 3 months ago (2016-09-14 12:30:29 UTC) #30
Peter Beverloo
lgtm! Thanks! :) https://codereview.chromium.org/2316263002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java (right): https://codereview.chromium.org/2316263002/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java#newcode306 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java:306: } On 2016/09/14 12:30:29, awdf wrote: ...
4 years, 3 months ago (2016-09-14 14:06:55 UTC) #31
awdf
https://codereview.chromium.org/2316263002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java (right): https://codereview.chromium.org/2316263002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java#newcode331 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java:331: } else if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M && mOrigin != ...
4 years, 3 months ago (2016-09-14 16:30:05 UTC) #34
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/2316263002/200001
4 years, 3 months ago (2016-09-14 16:35:52 UTC) #37
Peter Beverloo
https://codereview.chromium.org/2316263002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java (right): https://codereview.chromium.org/2316263002/diff/180001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java#newcode331 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java:331: } else if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M && mOrigin != ...
4 years, 3 months ago (2016-09-14 16:40:49 UTC) #38
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/259320)
4 years, 3 months ago (2016-09-14 16:46:07 UTC) #40
awdf
bauerb@chromium.org: Please review changes in android_chrome_strings.grd Thanks!
4 years, 3 months ago (2016-09-14 16:51:59 UTC) #42
Bernhard Bauer
lgtm
4 years, 3 months ago (2016-09-14 16:58:47 UTC) #43
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/2316263002/200001
4 years, 3 months ago (2016-09-15 09:56:05 UTC) #45
commit-bot: I haz the power
Committed patchset #5 (id:200001)
4 years, 3 months ago (2016-09-15 10:01:01 UTC) #46
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 10:02:56 UTC) #48
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b75661d3d5c5924cffc942945d79d0430b812e1c
Cr-Commit-Position: refs/heads/master@{#418817}

Powered by Google App Engine
This is Rietveld 408576698