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

Unified Diff: ash/focus_cycler_unittest.cc

Issue 2293183002: ash: Remove ash::Shelf in favor of ash::WmShelf (Closed)
Patch Set: rebase again 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/first_run/first_run_helper_impl.cc ('k') | ash/metrics/user_metrics_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/focus_cycler_unittest.cc
diff --git a/ash/focus_cycler_unittest.cc b/ash/focus_cycler_unittest.cc
index d2a5f4f8614dd6929139b6b90f3892f2d7fba156..b28f071e96f19979f9b433f1ea700417881aa2ee 100644
--- a/ash/focus_cycler_unittest.cc
+++ b/ash/focus_cycler_unittest.cc
@@ -6,8 +6,8 @@
#include <memory>
-#include "ash/common/shelf/shelf.h"
#include "ash/common/shelf/shelf_widget.h"
+#include "ash/common/shelf/wm_shelf.h"
#include "ash/common/system/status_area_widget.h"
#include "ash/common/system/status_area_widget_delegate.h"
#include "ash/common/system/tray/system_tray.h"
@@ -67,8 +67,6 @@ class FocusCyclerTest : public AshTestBase {
AshTestBase::SetUp();
focus_cycler_.reset(new FocusCycler());
-
- ASSERT_TRUE(Shelf::ForPrimaryDisplay());
}
void TearDown() override {
@@ -98,9 +96,7 @@ class FocusCyclerTest : public AshTestBase {
FocusCycler* focus_cycler() { return focus_cycler_.get(); }
- ShelfWidget* shelf_widget() {
- return Shelf::ForPrimaryDisplay()->shelf_widget();
- }
+ ShelfWidget* shelf_widget() { return GetPrimaryShelf()->shelf_widget(); }
void InstallFocusCycleOnShelf() {
// Add the shelf.
« no previous file with comments | « ash/first_run/first_run_helper_impl.cc ('k') | ash/metrics/user_metrics_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698