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

Unified Diff: ash/test/ash_test_helper.cc

Issue 2111443002: mash: Migrate SessionStateDelegate access to WmShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 6 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/test/ash_test_helper.cc
diff --git a/ash/test/ash_test_helper.cc b/ash/test/ash_test_helper.cc
index dcdb2e0fdc0ce76bf96d270dfd46003d23c05c90..acdf42eaa3d9b3af539d0832164ce1a8ad7df672 100644
--- a/ash/test/ash_test_helper.cc
+++ b/ash/test/ash_test_helper.cc
@@ -8,6 +8,7 @@
#include "ash/common/ash_switches.h"
#include "ash/common/display/display_info.h"
#include "ash/common/material_design/material_design_controller.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "ash/shell_init_params.h"
#include "ash/test/ash_test_views_delegate.h"
@@ -130,7 +131,7 @@ void AshTestHelper::SetUp(bool start_session) {
init_params.delegate = test_shell_delegate_;
init_params.context_factory = context_factory;
init_params.blocking_pool = content::BrowserThread::GetBlockingPool();
- ash::Shell::CreateInstance(init_params);
+ Shell::CreateInstance(init_params);
aura::test::EnvTestHelper(aura::Env::GetInstance())
.SetInputStateLookup(std::unique_ptr<aura::InputStateLookup>());
@@ -193,9 +194,9 @@ void AshTestHelper::RunAllPendingInMessageLoop() {
// static
TestSessionStateDelegate* AshTestHelper::GetTestSessionStateDelegate() {
- CHECK(Shell::HasInstance());
+ CHECK(WmShell::HasInstance());
return static_cast<TestSessionStateDelegate*>(
- Shell::GetInstance()->session_state_delegate());
+ WmShell::Get()->GetSessionStateDelegate());
}
aura::Window* AshTestHelper::CurrentContext() {

Powered by Google App Engine
This is Rietveld 408576698