| Index: ash/test/status_area_widget_test_helper.cc
|
| diff --git a/ash/test/status_area_widget_test_helper.cc b/ash/test/status_area_widget_test_helper.cc
|
| index e5a6b876caed0cbc15d18cf605aaa74b9f9fe760..c630646e7ddeab337f468b7f78cee88bc5aa4bf4 100644
|
| --- a/ash/test/status_area_widget_test_helper.cc
|
| +++ b/ash/test/status_area_widget_test_helper.cc
|
| @@ -4,7 +4,6 @@
|
|
|
| #include "ash/test/status_area_widget_test_helper.h"
|
|
|
| -#include "ash/common/shelf/shelf_widget.h"
|
| #include "ash/common/system/status_area_widget.h"
|
| #include "ash/common/system/tray/system_tray_delegate.h"
|
| #include "ash/common/wm_shell.h"
|
| @@ -18,9 +17,7 @@ LoginStatus StatusAreaWidgetTestHelper::GetUserLoginStatus() {
|
| }
|
|
|
| StatusAreaWidget* StatusAreaWidgetTestHelper::GetStatusAreaWidget() {
|
| - return Shell::GetPrimaryRootWindowController()
|
| - ->shelf_widget()
|
| - ->status_area_widget();
|
| + return Shell::GetPrimaryRootWindowController()->GetStatusAreaWidget();
|
| }
|
|
|
| StatusAreaWidget* StatusAreaWidgetTestHelper::GetSecondaryStatusAreaWidget() {
|
| @@ -30,10 +27,10 @@ StatusAreaWidget* StatusAreaWidgetTestHelper::GetSecondaryStatusAreaWidget() {
|
| Shell::GetAllRootWindowControllers();
|
| for (size_t i = 0; i < controllers.size(); ++i) {
|
| if (controllers[i] != primary_controller)
|
| - return controllers[i]->shelf_widget()->status_area_widget();
|
| + return controllers[i]->GetStatusAreaWidget();
|
| }
|
|
|
| - return NULL;
|
| + return nullptr;
|
| }
|
|
|
| } // namespace ash
|
|
|