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

Unified Diff: ash/system/toast/toast_manager_unittest.cc

Issue 2445583002: Relocate display_manager from ash to ui (Closed)
Patch Set: fix windows build Created 4 years, 2 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/system/toast/toast_manager_unittest.cc
diff --git a/ash/system/toast/toast_manager_unittest.cc b/ash/system/toast/toast_manager_unittest.cc
index 3d1e0b85d569202551f1243197192478d635badf..e946930819a66d4d0468c72a041e910975fde25f 100644
--- a/ash/system/toast/toast_manager_unittest.cc
+++ b/ash/system/toast/toast_manager_unittest.cc
@@ -7,7 +7,6 @@
#include "ash/common/system/toast/toast_manager.h"
#include "ash/common/wm/wm_screen_util.h"
#include "ash/common/wm_shell.h"
-#include "ash/display/display_manager.h"
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#include "base/run_loop.h"
@@ -15,6 +14,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/compositor/scoped_animation_duration_scale_mode.h"
+#include "ui/display/manager/display_manager.h"
#include "ui/views/widget/widget.h"
namespace ash {
@@ -240,9 +240,7 @@ TEST_F(ToastManagerTest, PositionWithVisibleLeftShelf) {
TEST_F(ToastManagerTest, PositionWithUnifiedDesktop) {
if (!SupportsMultipleDisplays())
return;
-
- DisplayManager* display_manager = Shell::GetInstance()->display_manager();
- display_manager->SetUnifiedDesktopEnabled(true);
+ display_manager()->SetUnifiedDesktopEnabled(true);
UpdateDisplay("1000x500,0+600-100x500");
WmShelf* shelf = GetPrimaryShelf();

Powered by Google App Engine
This is Rietveld 408576698