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

Unified Diff: ash/wm/overview/window_selector_unittest.cc

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Clean up include and modify comment. Created 3 years, 10 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/overview/window_selector_unittest.cc
diff --git a/ash/wm/overview/window_selector_unittest.cc b/ash/wm/overview/window_selector_unittest.cc
index ce60320a23086eb0e991c947c15c71d4159d8c71..73fb5a637c47086ffd2acc599168305da327c4ec 100644
--- a/ash/wm/overview/window_selector_unittest.cc
+++ b/ash/wm/overview/window_selector_unittest.cc
@@ -24,7 +24,6 @@
#include "ash/common/wm/window_state.h"
#include "ash/common/wm/wm_event.h"
#include "ash/common/wm/workspace/workspace_window_resizer.h"
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/common/wm_window_property.h"
@@ -160,7 +159,7 @@ class WindowSelectorTest : public test::AshTestBase {
params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;
widget->Init(params);
widget->Show();
- WmWindow* window = WmLookup::Get()->GetWindowForWidget(widget.get());
+ WmWindow* window = WmWindow::Get(widget->GetNativeWindow());
window->SetIntProperty(WmWindowProperty::TOP_VIEW_INSET, kHeaderHeight);
ParentWindowInPrimaryRootWindow(widget->GetNativeWindow());
return widget;
@@ -1130,7 +1129,7 @@ TEST_F(WindowSelectorTest, CloseButtonOnMultipleDisplay) {
params.parent = window1->parent();
widget->Init(params);
widget->Show();
- WmWindow* window = WmLookup::Get()->GetWindowForWidget(widget.get());
+ WmWindow* window = WmWindow::Get(widget->GetNativeWindow());
window->SetIntProperty(WmWindowProperty::TOP_VIEW_INSET, kHeaderHeight);
ASSERT_EQ(root_windows[1], window1->GetRootWindow());

Powered by Google App Engine
This is Rietveld 408576698