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

Unified Diff: ash/wm/panels/panel_window_resizer_unittest.cc

Issue 2332393003: mash: Remove shelf util functions; use WmWindow properties. (Closed)
Patch Set: Cleanup,. Created 4 years, 3 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
Index: ash/wm/panels/panel_window_resizer_unittest.cc
diff --git a/ash/wm/panels/panel_window_resizer_unittest.cc b/ash/wm/panels/panel_window_resizer_unittest.cc
index 02a714be61adc4ed609649c7b29b49c3a0a63875..0e6cd43c9528ce4abee4d9a8309b099d4b304561 100644
--- a/ash/wm/panels/panel_window_resizer_unittest.cc
+++ b/ash/wm/panels/panel_window_resizer_unittest.cc
@@ -14,8 +14,8 @@
#include "ash/common/wm/window_state.h"
#include "ash/common/wm/wm_event.h"
#include "ash/common/wm_shell.h"
+#include "ash/common/wm_window_property.h"
#include "ash/root_window_controller.h"
-#include "ash/shelf/shelf_util.h"
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#include "ash/test/cursor_manager_test_api.h"
@@ -134,7 +134,8 @@ class PanelWindowResizerTest : public test::AshTestBase {
for (std::vector<aura::Window *>::const_iterator
iter = window_order.begin();
iter != window_order.end(); ++iter, ++panel_index) {
- ShelfID id = GetShelfIDForWindow(*iter);
+ ShelfID id =
+ WmWindowAura::Get(*iter)->GetIntProperty(WmWindowProperty::SHELF_ID);
EXPECT_EQ(id, model_->items()[panel_index].id);
}
}

Powered by Google App Engine
This is Rietveld 408576698