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

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

Issue 18850003: Focus kept on login screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test fixed. Created 7 years, 5 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/chromeos/policy/device_local_account_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/view_event_test_base.cc
diff --git a/chrome/test/base/view_event_test_base.cc b/chrome/test/base/view_event_test_base.cc
index 62a7b4e7607bc90cf74818a74e4191e5c9f8d79c..682f26048eb8048e04a151b6b3ee34fed43829b7 100644
--- a/chrome/test/base/view_event_test_base.cc
+++ b/chrome/test/base/view_event_test_base.cc
@@ -20,6 +20,7 @@
#if defined(USE_ASH)
#include "ash/shell.h"
+#include "ash/test/test_session_state_delegate.h"
#include "ash/test/test_shell_delegate.h"
#endif
@@ -108,7 +109,11 @@ void ViewEventTestBase::SetUp() {
#if defined(OS_CHROMEOS)
chromeos::CrasAudioHandler::InitializeForTesting();
#endif
- ash::Shell::CreateInstance(new ash::test::TestShellDelegate());
+ ash::test::TestShellDelegate* shell_delegate =
+ new ash::test::TestShellDelegate();
+ ash::Shell::CreateInstance(shell_delegate);
+ shell_delegate->test_session_state_delegate()
+ ->SetActiveUserSessionStarted(true);
context = ash::Shell::GetPrimaryRootWindow();
#endif
#elif defined(USE_AURA)
« no previous file with comments | « chrome/browser/chromeos/policy/device_local_account_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698