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

Unified Diff: ash/wm/system_modal_container_layout_manager_unittest.cc

Issue 2871813002: Converts remaining usage of WmLayoutManager to aura::LayoutManager (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
« no previous file with comments | « ash/wm/system_modal_container_layout_manager.cc ('k') | ash/wm/window_positioning_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/system_modal_container_layout_manager_unittest.cc
diff --git a/ash/wm/system_modal_container_layout_manager_unittest.cc b/ash/wm/system_modal_container_layout_manager_unittest.cc
index 70146ee62ca03ff256fc1f6545f9cae864eeb034..a3c10da8320fc864cf45cd34f26ff8625d21f0cf 100644
--- a/ash/wm/system_modal_container_layout_manager_unittest.cc
+++ b/ash/wm/system_modal_container_layout_manager_unittest.cc
@@ -15,7 +15,6 @@
#include "ash/test/ash_test_base.h"
#include "ash/wm/container_finder.h"
#include "ash/wm/window_util.h"
-#include "ash/wm_window.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/memory/ptr_util.h"
@@ -54,7 +53,7 @@ bool AllRootWindowsHaveModalBackgroundsForContainer(int container_id) {
bool has_modal_screen = !containers.empty();
for (aura::Window* container : containers) {
has_modal_screen &= static_cast<SystemModalContainerLayoutManager*>(
- WmWindow::Get(container)->GetLayoutManager())
+ container->layout_manager())
->has_window_dimmer();
}
return has_modal_screen;
@@ -804,7 +803,7 @@ TEST_F(SystemModalContainerLayoutManagerTest, VisibilityChange) {
SystemModalContainerLayoutManager* layout_manager =
ShellPort::Get()
->GetPrimaryRootWindowController()
- ->GetSystemModalLayoutManager(WmWindow::Get(modal_window.get()));
+ ->GetSystemModalLayoutManager(modal_window.get());
EXPECT_FALSE(ShellPort::Get()->IsSystemModalWindowOpen());
EXPECT_FALSE(layout_manager->has_window_dimmer());
« no previous file with comments | « ash/wm/system_modal_container_layout_manager.cc ('k') | ash/wm/window_positioning_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698