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

Unified Diff: chrome/browser/ui/window_sizer/window_sizer_ash_uitest.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 | « chrome/browser/ui/webui/chromeos/first_run/first_run_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc
diff --git a/chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc b/chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc
index a724301593c3e5974d0c27f887db43c7d87a7064..2fa5c52b8a9ea3743f3fc9fc474f9f59d1574989 100644
--- a/chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc
+++ b/chrome/browser/ui/window_sizer/window_sizer_ash_uitest.cc
@@ -3,10 +3,9 @@
// found in the LICENSE file.
#include "ash/aura/wm_window_aura.h"
-#include "ash/common/shelf/shelf.h"
#include "ash/common/shelf/shelf_view.h"
+#include "ash/common/shelf/wm_shelf.h"
#include "ash/shell.h"
-#include "ash/test/shelf_test_api.h"
#include "base/command_line.h"
#include "base/location.h"
#include "base/macros.h"
@@ -54,10 +53,9 @@ void CloseBrowser(Browser* browser) {
}
gfx::Rect GetChromeIconBoundsForRootWindow(aura::Window* root_window) {
- ash::Shelf* shelf =
- ash::Shelf::ForWindow(ash::WmWindowAura::Get(root_window));
const ash::ShelfView* shelf_view =
- ash::test::ShelfTestAPI(shelf).shelf_view();
+ ash::WmShelf::ForWindow(ash::WmWindowAura::Get(root_window))
+ ->GetShelfViewForTesting();
const views::ViewModel* view_model = shelf_view->view_model_for_test();
EXPECT_EQ(2, view_model->view_size());
« no previous file with comments | « chrome/browser/ui/webui/chromeos/first_run/first_run_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698