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

Unified Diff: ash/wm/workspace/multi_window_resize_controller_unittest.cc

Issue 2891183002: chromeos: removes WmWindow usage from MultiWindowResizeController (Closed)
Patch Set: cleanup Created 3 years, 7 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/workspace/multi_window_resize_controller_unittest.cc
diff --git a/ash/wm/workspace/multi_window_resize_controller_unittest.cc b/ash/wm/workspace/multi_window_resize_controller_unittest.cc
index 48fb93c6a88517b6366b0b0f467cdaebb779af5d..26ecbe58201045f710a938dd891cc1e187bb76df 100644
--- a/ash/wm/workspace/multi_window_resize_controller_unittest.cc
+++ b/ash/wm/workspace/multi_window_resize_controller_unittest.cc
@@ -85,12 +85,11 @@ class MultiWindowResizeControllerTest : public test::AshTestBase {
bool HasTarget(aura::Window* window) {
if (!resize_controller_->windows_.is_valid())
return false;
- WmWindow* wm_window = WmWindow::Get(window);
- if ((resize_controller_->windows_.window1 == wm_window ||
- resize_controller_->windows_.window2 == wm_window))
+ if ((resize_controller_->windows_.window1 == window ||
msw 2017/05/18 22:28:04 nit: remove extra parens, optionally add curlies.
sky 2017/05/18 22:40:15 Done.
+ resize_controller_->windows_.window2 == window))
return true;
return base::ContainsValue(resize_controller_->windows_.other_windows,
- wm_window);
+ window);
}
bool IsOverWindows(const gfx::Point& loc) {

Powered by Google App Engine
This is Rietveld 408576698