diff options
Diffstat (limited to 'chrome/test/base/view_event_test_base.cc')
-rw-r--r-- | chrome/test/base/view_event_test_base.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/test/base/view_event_test_base.cc b/chrome/test/base/view_event_test_base.cc index bdba76a..2d64c5d 100644 --- a/chrome/test/base/view_event_test_base.cc +++ b/chrome/test/base/view_event_test_base.cc @@ -29,6 +29,7 @@ #if defined(USE_ASH) #include "ash/shell.h" +#include "ash/shell_init_params.h" #include "ash/test/test_session_state_delegate.h" #include "ash/test/test_shell_delegate.h" #endif @@ -128,7 +129,9 @@ void ViewEventTestBase::SetUp() { #endif // OS_CHROMEOS ash::test::TestShellDelegate* shell_delegate = new ash::test::TestShellDelegate(); - ash::Shell::CreateInstance(shell_delegate); + ash::ShellInitParams init_params; + init_params.delegate = shell_delegate; + ash::Shell::CreateInstance(init_params); shell_delegate->test_session_state_delegate() ->SetActiveUserSessionStarted(true); context = ash::Shell::GetPrimaryRootWindow(); |