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 1387383004: Plumb NotifierId to status icon balloons (Closed)

Created:
5 years, 2 months ago by johnme
Modified:
5 years, 2 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@notif_cleanup
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Plumb NotifierId to status icon balloons When constructing Notifications, a NotifierId must be passed indicating which component of Chrome is responsible for the notification. Previously, as of https://codereview.chromium.org/1395093002, a status icon DesktopNotificationBalloon would use a fixed string for the NotifierId. But DesktopNotificationBalloons is just a middle-man, that could actually be used by various components within Chrome. Thus, this patch adds a NotifierId parameter to StatusIcon::DisplayBalloon, which is provided by the calling component. BUG=542232 Committed: https://crrev.com/9295617d1839f851becebee59a3c64cdadf46164 Cr-Commit-Position: refs/heads/master@{#354286}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 4

Patch Set 3 : Rebase and remove unnecessary anonymous namespace #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -33 lines) Patch
M chrome/browser/background/background_mode_manager_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/background/background_mode_manager_win.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/status_icons/desktop_notification_balloon.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/status_icons/desktop_notification_balloon.cc View 1 2 3 3 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/status_icons/status_icon.h View 1 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/status_icons/status_icon_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/status_icons/status_tray_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/status_icons/status_icon_mac.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/status_icons/status_icon_mac.mm View 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/status_icons/status_icon_linux_wrapper.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/status_icons/status_icon_linux_wrapper.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/status_icons/status_icon_win.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/status_icons/status_icon_win.cc View 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
Peter Beverloo
+dewittj, atwilson Could you please amend the CL's description to describe the *why* in one ...
5 years, 2 months ago (2015-10-10 16:35:27 UTC) #2
Andrew T Wilson (Slow)
LGTM - no strong opinion about NotifierId, so I think it's probably OK as-is.
5 years, 2 months ago (2015-10-12 10:37:04 UTC) #3
johnme
https://codereview.chromium.org/1387383004/diff/20001/chrome/browser/background/background_mode_manager_win.cc File chrome/browser/background/background_mode_manager_win.cc (right): https://codereview.chromium.org/1387383004/diff/20001/chrome/browser/background/background_mode_manager_win.cc#newcode26 chrome/browser/background/background_mode_manager_win.cc:26: const char kAppInstalledNotifierId[] = "background-mode.app-installed"; On 2015/10/10 16:35:27, Peter ...
5 years, 2 months ago (2015-10-12 14:34:09 UTC) #4
johnme
pkasting@chromium.org: Please give owners approval for changes in chrome/browser/ui/. Thanks!
5 years, 2 months ago (2015-10-12 14:45:20 UTC) #6
Peter Beverloo
lgtm
5 years, 2 months ago (2015-10-12 17:09:29 UTC) #7
dewittj
It seems better to me to just remove the entire DisplayBalloon method and make background_mode_manager ...
5 years, 2 months ago (2015-10-12 17:50:59 UTC) #8
Peter Kasting
LGTM, feel free to TBR OWNERS for trivial mechanical changes in their area
5 years, 2 months ago (2015-10-12 23:40:58 UTC) #9
johnme
On 2015/10/12 17:50:59, dewittj wrote: > It seems better to me to just remove the ...
5 years, 2 months ago (2015-10-13 13:16:41 UTC) #10
dewittj
sure, lgtm
5 years, 2 months ago (2015-10-14 21:04:41 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387383004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387383004/40001
5 years, 2 months ago (2015-10-15 11:07:49 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/110399) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-10-15 11:09:12 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1387383004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1387383004/60001
5 years, 2 months ago (2015-10-15 16:13:13 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-15 16:54:29 UTC) #20
commit-bot: I haz the power
5 years, 2 months ago (2015-10-15 16:55:36 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9295617d1839f851becebee59a3c64cdadf46164
Cr-Commit-Position: refs/heads/master@{#354286}

Powered by Google App Engine
This is Rietveld 408576698