Chromium Code Reviews| Index: chrome/browser/chromeos/status/status_area_view_chromeos.cc |
| diff --git a/chrome/browser/chromeos/status/status_area_view_chromeos.cc b/chrome/browser/chromeos/status/status_area_view_chromeos.cc |
| index 4bb5a5d047427a178bd3d2edaf88e28e6098413d..02d9dbf543b0aca8a796e601a7a70151efce7b7f 100644 |
| --- a/chrome/browser/chromeos/status/status_area_view_chromeos.cc |
| +++ b/chrome/browser/chromeos/status/status_area_view_chromeos.cc |
| @@ -30,7 +30,8 @@ StatusAreaViewChromeos::~StatusAreaViewChromeos() { |
| void StatusAreaViewChromeos::Init(StatusAreaButton::Delegate* delegate, |
| ScreenMode screen_mode) { |
| - AddChromeosButtons(this, delegate, screen_mode); |
| + ClockMenuButton* clock_button = NULL; |
| + AddChromeosButtons(this, delegate, screen_mode, &clock_button); |
| } |
| void StatusAreaViewChromeos::SystemResumed() { |
| @@ -59,7 +60,8 @@ void StatusAreaViewChromeos::SetDefaultUse24HourClock(bool use_24hour_clock) { |
| void StatusAreaViewChromeos::AddChromeosButtons( |
| StatusAreaView* status_area, |
| StatusAreaButton::Delegate* delegate, |
| - ScreenMode screen_mode) { |
| + ScreenMode screen_mode, |
| + ClockMenuButton** clock_button) { |
|
stevenjb
2011/11/18 23:06:11
Oh, one more nit. We might want to allow this to b
sky
2011/11/18 23:12:55
Done.
|
| const bool border = true; |
| const bool no_border = false; |
| @@ -69,7 +71,8 @@ void StatusAreaViewChromeos::AddChromeosButtons( |
| status_area->AddButton( |
| new AccessibilityMenuButton(delegate, screen_mode), border); |
| status_area->AddButton(new CapsLockMenuButton(delegate), border); |
| - status_area->AddButton(new ClockMenuButton(delegate), border); |
| + *clock_button = new ClockMenuButton(delegate); |
| + status_area->AddButton(*clock_button, border); |
| status_area->AddButton( |
| new InputMethodMenuButton(delegate, screen_mode), no_border); |