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

Issue 8375027: Implement notifications for the DisplayBalloon method on Linux and Mac. (Closed)

Created:
9 years, 2 months ago by Leandro Gracia Gil
Modified:
9 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

Implement notifications for the DisplayBalloon method on Linux and Mac. BUG=74970 TEST=install background app on window, see desktop notification. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107722

Patch Set 1 #

Patch Set 2 : adding the mac changes to this patch as they share most of the code. #

Patch Set 3 : fixing the empty icon image case. #

Patch Set 4 : fixing DisplayBalloon argument order. #

Patch Set 5 : fixing DisplayBalloon argument order (good). #

Total comments: 10

Patch Set 6 : review fixes. #

Patch Set 7 : fixing mac include. #

Patch Set 8 : fixing profile usage. #

Total comments: 4

Patch Set 9 : adding notification balloon timeout. #

Total comments: 2

Patch Set 10 : fixing nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -7 lines) Patch
A chrome/browser/status_icons/desktop_notification_balloon.h View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/status_icons/desktop_notification_balloon.cc View 1 2 3 4 5 6 7 8 9 1 chunk +82 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/status_icons/status_icon_mac.h View 1 2 3 4 5 6 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/status_icons/status_icon_mac.mm View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/gtk/status_icons/status_icon_gtk.h View 1 2 3 4 5 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/status_icons/status_icon_gtk.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Leandro Graciá Gil
To be landed after http://codereview.chromium.org/8351004/ . Will rebase and check the try-bots after that.
9 years, 2 months ago (2011-10-24 17:55:53 UTC) #1
Andrew T Wilson (Slow)
http://codereview.chromium.org/8375027/diff/14/chrome/browser/status_icons/desktop_notification_balloon_impl.cc File chrome/browser/status_icons/desktop_notification_balloon_impl.cc (right): http://codereview.chromium.org/8375027/diff/14/chrome/browser/status_icons/desktop_notification_balloon_impl.cc#newcode23 chrome/browser/status_icons/desktop_notification_balloon_impl.cc:23: void CloseBalloon(const std::string id) { Is there a reason ...
9 years, 2 months ago (2011-10-26 01:21:18 UTC) #2
Leandro Graciá Gil
http://codereview.chromium.org/8375027/diff/14/chrome/browser/status_icons/desktop_notification_balloon_impl.cc File chrome/browser/status_icons/desktop_notification_balloon_impl.cc (right): http://codereview.chromium.org/8375027/diff/14/chrome/browser/status_icons/desktop_notification_balloon_impl.cc#newcode23 chrome/browser/status_icons/desktop_notification_balloon_impl.cc:23: void CloseBalloon(const std::string id) { This comes from a ...
9 years, 1 month ago (2011-10-26 13:51:59 UTC) #3
Andrew T Wilson (Slow)
http://codereview.chromium.org/8375027/diff/8003/chrome/browser/status_icons/desktop_notification_balloon.cc File chrome/browser/status_icons/desktop_notification_balloon.cc (right): http://codereview.chromium.org/8375027/diff/8003/chrome/browser/status_icons/desktop_notification_balloon.cc#newcode32 chrome/browser/status_icons/desktop_notification_balloon.cc:32: virtual std::string id() const OVERRIDE { return kNotificationPrefix + ...
9 years, 1 month ago (2011-10-26 22:20:26 UTC) #4
Leandro Graciá Gil
http://codereview.chromium.org/8375027/diff/8003/chrome/browser/status_icons/desktop_notification_balloon.cc File chrome/browser/status_icons/desktop_notification_balloon.cc (right): http://codereview.chromium.org/8375027/diff/8003/chrome/browser/status_icons/desktop_notification_balloon.cc#newcode32 chrome/browser/status_icons/desktop_notification_balloon.cc:32: virtual std::string id() const OVERRIDE { return kNotificationPrefix + ...
9 years, 1 month ago (2011-10-26 23:10:02 UTC) #5
Andrew T Wilson (Slow)
Looks good, except for the bit about allowing IO on the UI thread. What did ...
9 years, 1 month ago (2011-10-27 01:01:40 UTC) #6
Leandro Graciá Gil
Miranda suggested to use ProfileManager::GetLastUsedProfile(), which retrieves the last used profile from memory (and therefore ...
9 years, 1 month ago (2011-10-27 11:38:03 UTC) #7
Andrew T Wilson (Slow)
9 years, 1 month ago (2011-10-27 17:19:40 UTC) #8
LGTM, since Miranda approves.

Powered by Google App Engine
This is Rietveld 408576698