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

Unified Diff: ash/common/wm/overview/cleanup_animation_observer_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/common/wm/overview/cleanup_animation_observer_unittest.cc
diff --git a/ash/common/wm/overview/cleanup_animation_observer_unittest.cc b/ash/common/wm/overview/cleanup_animation_observer_unittest.cc
index 68cee255a16d3348182255f70922bfc882fa0b05..a4db1edaaeff9db98f054ce61d3e72a5cb94d0d9 100644
--- a/ash/common/wm/overview/cleanup_animation_observer_unittest.cc
+++ b/ash/common/wm/overview/cleanup_animation_observer_unittest.cc
@@ -7,7 +7,6 @@
#include <vector>
#include "ash/common/wm/overview/window_selector_delegate.h"
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_window.h"
#include "ash/test/ash_test_base.h"
#include "ui/compositor/layer_animation_observer.h"
@@ -125,7 +124,7 @@ TEST_F(CleanupAnimationObserverTest, CreateAnimateComplete) {
TestWindowSelectorDelegate delegate;
std::unique_ptr<views::Widget> widget(
CreateWindowWidget(gfx::Rect(0, 0, 40, 40)));
- WmWindow* widget_window = WmLookup::Get()->GetWindowForWidget(widget.get());
+ WmWindow* widget_window = WmWindow::Get(widget->GetNativeWindow());
{
ui::ScopedLayerAnimationSettings animation_settings(
widget_window->GetLayer()->GetAnimator());
@@ -156,7 +155,7 @@ TEST_F(CleanupAnimationObserverTest, CreateAnimateShutdown) {
TestWindowSelectorDelegate delegate;
std::unique_ptr<views::Widget> widget(
CreateWindowWidget(gfx::Rect(0, 0, 40, 40)));
- WmWindow* widget_window = WmLookup::Get()->GetWindowForWidget(widget.get());
+ WmWindow* widget_window = WmWindow::Get(widget->GetNativeWindow());
{
// Normal animations for tests have ZERO_DURATION, make sure we are actually
// animating the movement.
« no previous file with comments | « ash/common/wm/maximize_mode/workspace_backdrop_delegate.cc ('k') | ash/common/wm/overview/scoped_transform_overview_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698