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

Unified Diff: ash/common/wm/container_finder_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/container_finder_unittest.cc
diff --git a/ash/common/wm/container_finder_unittest.cc b/ash/common/wm/container_finder_unittest.cc
index 82c44473839b263654dd0d94deafcbd9a237f042..cf9f96ddb55a86fc0f6134c6289e508a707594c1 100644
--- a/ash/common/wm/container_finder_unittest.cc
+++ b/ash/common/wm/container_finder_unittest.cc
@@ -7,7 +7,6 @@
#include <memory>
#include "ash/common/test/ash_test.h"
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ui/gfx/geometry/rect.h"
@@ -21,7 +20,7 @@ TEST_F(ContainerFinderTest, GetContainerForWindow) {
// Create a normal widget in the default container.
std::unique_ptr<views::Widget> widget =
CreateTestWidget(gfx::Rect(1, 2, 3, 4));
- WmWindow* window = WmLookup::Get()->GetWindowForWidget(widget.get());
+ WmWindow* window = WmWindow::Get(widget->GetNativeWindow());
// The window itself is not a container.
EXPECT_EQ(kShellWindowId_Invalid, window->GetShellWindowId());
« no previous file with comments | « ash/common/wallpaper/wallpaper_widget_controller.cc ('k') | ash/common/wm/dock/docked_window_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698