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

Issue 11312139: Add SystemTrayObservers (Closed)

Created:
8 years, 1 month ago by stevenjb
Modified:
8 years, 1 month ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Add SystemTrayObservers Once there is more than one SystemTray instance, we will need to support observer lists so that multiple tray items can be notified. Hosting the observer lists in a separate class owned by ass::SystemTrayDelegate seemed like the most forward approach. BUG=159543 For ash.gyp: TBR=sky@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167548

Patch Set 1 #

Total comments: 4

Patch Set 2 : Move Notify* to SystemTrayObservers #

Patch Set 3 : Add missing system_tray_observers.cc #

Patch Set 4 : Add explicit destructor #

Patch Set 5 : SystemTrayObservers -> SystemTrayNotifier #

Total comments: 2

Patch Set 6 : Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+474 lines, -243 lines) Patch
M ash/ash.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ash/shell.h View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download
M ash/system/status_area_widget.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M ash/system/tray/system_tray.h View 1 2 3 4 5 5 chunks +7 lines, -74 lines 0 comments Download
M ash/system/tray/system_tray.cc View 1 2 3 4 4 chunks +38 lines, -53 lines 0 comments Download
A ash/system/tray/system_tray_notifier.h View 1 2 3 4 1 chunk +117 lines, -0 lines 0 comments Download
A ash/system/tray/system_tray_notifier.cc View 1 2 3 4 1 chunk +237 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/locale_change_guard.cc View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/network_message_observer.cc View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/sms_observer.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/status/data_promo_notification.cc View 1 2 3 4 3 chunks +6 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/system/ash_system_tray_delegate.cc View 1 2 3 4 12 chunks +37 lines, -91 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
stevenjb
Sadrul, can you take a look at this one? Does this seem like a reasonable ...
8 years, 1 month ago (2012-11-08 02:32:59 UTC) #1
oshima
http://codereview.chromium.org/11312139/diff/1/ash/system/tray/system_tray_observers.h File ash/system/tray/system_tray_observers.h (right): http://codereview.chromium.org/11312139/diff/1/ash/system/tray/system_tray_observers.h#newcode41 ash/system/tray/system_tray_observers.h:41: } new line between methods. http://codereview.chromium.org/11312139/diff/1/chrome/browser/chromeos/locale_change_guard.cc File chrome/browser/chromeos/locale_change_guard.cc (right): ...
8 years, 1 month ago (2012-11-09 19:21:50 UTC) #2
sadrul
Apologies for the really long delay in review. http://codereview.chromium.org/11312139/diff/1/chrome/browser/chromeos/locale_change_guard.cc File chrome/browser/chromeos/locale_change_guard.cc (right): http://codereview.chromium.org/11312139/diff/1/chrome/browser/chromeos/locale_change_guard.cc#newcode177 chrome/browser/chromeos/locale_change_guard.cc:177: ash::Shell::GetInstance()->tray_delegate()->GetSystemTrayObservers(); ...
8 years, 1 month ago (2012-11-09 23:26:32 UTC) #3
stevenjb
http://codereview.chromium.org/11312139/diff/1/chrome/browser/chromeos/locale_change_guard.cc File chrome/browser/chromeos/locale_change_guard.cc (right): http://codereview.chromium.org/11312139/diff/1/chrome/browser/chromeos/locale_change_guard.cc#newcode177 chrome/browser/chromeos/locale_change_guard.cc:177: ash::Shell::GetInstance()->tray_delegate()->GetSystemTrayObservers(); On 2012/11/09 23:26:32, sadrul wrote: > I agree ...
8 years, 1 month ago (2012-11-09 23:40:44 UTC) #4
stevenjb
I couldn't eliminate testing the result of GetSystemTrayObservers() because we could be be using a ...
8 years, 1 month ago (2012-11-12 18:14:42 UTC) #5
stevenjb
Ping
8 years, 1 month ago (2012-11-13 18:38:06 UTC) #6
oshima
On 2012/11/12 18:14:42, stevenjb (chromium) wrote: > I couldn't eliminate testing the result of GetSystemTrayObservers() ...
8 years, 1 month ago (2012-11-13 19:30:04 UTC) #7
stevenjb
I renamed SystemTrayObservers to SystemTrayNotifier and moved ownership to ash:Shell so that we don't need ...
8 years, 1 month ago (2012-11-13 20:33:26 UTC) #8
stevenjb
PTAL
8 years, 1 month ago (2012-11-13 20:36:12 UTC) #9
sadrul
LGTM The notifier looks a bit tedious, but I can't think of a way to ...
8 years, 1 month ago (2012-11-13 20:54:50 UTC) #10
stevenjb (google-dont-use)
Agreed on the tediousness and lack of straightforward better options. Hopefully a bunch of this ...
8 years, 1 month ago (2012-11-13 21:01:47 UTC) #11
oshima
lgtm thanks, looks much better than before (this CL).
8 years, 1 month ago (2012-11-13 21:15:00 UTC) #12
stevenjb
http://codereview.chromium.org/11312139/diff/6003/ash/system/tray/system_tray.h File ash/system/tray/system_tray.h (right): http://codereview.chromium.org/11312139/diff/6003/ash/system/tray/system_tray.h#newcode65 ash/system/tray/system_tray.h:65: // Calls TrayBackgroundView::Initialize() On 2012/11/13 20:54:50, sadrul wrote: > ...
8 years, 1 month ago (2012-11-13 21:19:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/11312139/1024
8 years, 1 month ago (2012-11-13 22:17:42 UTC) #14
commit-bot: I haz the power
Presubmit check for 11312139-1024 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-11-13 22:17:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/11312139/1024
8 years, 1 month ago (2012-11-13 22:28:40 UTC) #16
commit-bot: I haz the power
8 years, 1 month ago (2012-11-14 01:11:03 UTC) #17
Change committed as 167548

Powered by Google App Engine
This is Rietveld 408576698