| Index: ash/system/tray/system_tray_unittest.cc
|
| diff --git a/ash/system/tray/system_tray_unittest.cc b/ash/system/tray/system_tray_unittest.cc
|
| index a76b27cbf63803a13b1748b0da1605f02465acb9..0c3aeb708b23cb03825bca59839b6cb0d42c4f61 100644
|
| --- a/ash/system/tray/system_tray_unittest.cc
|
| +++ b/ash/system/tray/system_tray_unittest.cc
|
| @@ -21,12 +21,10 @@ namespace test {
|
| namespace {
|
|
|
| SystemTray* CreateSystemTray() {
|
| - SystemTray* tray = new SystemTray;
|
| internal::StatusAreaWidget* widget = new internal::StatusAreaWidget;
|
| - widget->AddTray(tray);
|
| - tray->CreateItems();
|
| + widget->CreateTrayViews(NULL);
|
| widget->Show();
|
| - return tray;
|
| + return widget->system_tray();
|
| }
|
|
|
| // Trivial item implementation that tracks its views for testing.
|
|
|