Chromium Code Reviews| Index: ash/shell.cc |
| diff --git a/ash/shell.cc b/ash/shell.cc |
| index 4e6580a12bfb61ba8479ea20e943ca2d7d5e30bd..044844ec6c6cf4def340e792426b020b62f4f60d 100644 |
| --- a/ash/shell.cc |
| +++ b/ash/shell.cc |
| @@ -698,7 +698,14 @@ void Shell::OnLockStateChanged(bool locked) { |
| } |
| void Shell::CreateLauncher() { |
| - GetPrimaryRootWindowController()->CreateLauncher(); |
| + if (IsLauncherPerDisplayEnabled()) { |
| + RootWindowControllerList controllers = GetAllRootWindowControllers(); |
| + for (RootWindowControllerList::iterator iter = controllers.begin(); |
| + iter != controllers.end(); ++iter) |
| + (*iter)->CreateLauncher(); |
| + } else { |
|
stevenjb
2012/12/10 20:29:38
nit: extra ' ' before else
oshima
2012/12/10 20:33:12
Done.
|
| + GetPrimaryRootWindowController()->CreateLauncher(); |
| + } |
| } |
| void Shell::ShowLauncher() { |
| @@ -781,16 +788,12 @@ WebNotificationTray* Shell::GetWebNotificationTray() { |
| web_notification_tray(); |
| } |
| -internal::StatusAreaWidget* Shell::status_area_widget() { |
| - return GetPrimaryRootWindowController()->status_area_widget(); |
| +bool Shell::HasPrimaryStatusArea() { |
| + return !!GetPrimaryRootWindowController()->status_area_widget(); |
| } |
| -SystemTray* Shell::system_tray() { |
| - // We assume in throughout the code that this will not return NULL. If code |
| - // triggers this for valid reasons, it should test status_area_widget first. |
| - internal::StatusAreaWidget* status_area = status_area_widget(); |
| - CHECK(status_area); |
| - return status_area->system_tray(); |
| +SystemTray* Shell::GetPrimarySystemTray() { |
| + return GetPrimaryRootWindowController()->GetSystemTray(); |
| } |
| void Shell::InitRootWindowForSecondaryDisplay(aura::RootWindow* root) { |