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

Unified Diff: ash/test/status_area_widget_test_helper.cc

Issue 2304443002: ash: Move ShelfWidget ownership to WmShelf and refactor access to it (Closed)
Patch Set: review comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shell/window_type_launcher.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ash/shell/window_type_launcher.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698