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

Unified Diff: chrome/test/base/view_event_test_platform_part_chromeos.cc

Issue 2734933004: ash: Use SessionController instead of SessionStateDelegate (Closed)
Patch Set: rebase to get WorkspaceLayoutManagerSoloTest change Created 3 years, 9 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 | « chrome/browser/ui/ash/session_state_delegate_chromeos.cc ('k') | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/view_event_test_platform_part_chromeos.cc
diff --git a/chrome/test/base/view_event_test_platform_part_chromeos.cc b/chrome/test/base/view_event_test_platform_part_chromeos.cc
index 3714ff602285f8e75b391c7b6c1f0db15e2406c0..24832131a2f427c881ebf0ae5c7c4f17b6bb7636 100644
--- a/chrome/test/base/view_event_test_platform_part_chromeos.cc
+++ b/chrome/test/base/view_event_test_platform_part_chromeos.cc
@@ -6,7 +6,8 @@
#include <memory>
-#include "ash/common/test/test_session_state_delegate.h"
+#include "ash/common/test/test_session_controller_client.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "ash/shell_init_params.h"
#include "ash/test/ash_test_helper.h"
@@ -70,8 +71,9 @@ ViewEventTestPlatformPartChromeOS::ViewEventTestPlatformPartChromeOS(
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
switches::kHostWindowBounds, "0+0-1280x800");
ash::Shell::CreateInstance(init_params);
- ash::test::AshTestHelper::GetTestSessionStateDelegate()->
- SetActiveUserSessionStarted(true);
+ ash::test::TestSessionControllerClient session_controller_client(
+ ash::WmShell::Get()->session_controller());
+ session_controller_client.CreatePredefinedUserSessions(1);
GetContext()->GetHost()->Show();
}
« no previous file with comments | « chrome/browser/ui/ash/session_state_delegate_chromeos.cc ('k') | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698