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

Unified Diff: ash/test/ash_test_helper.cc

Issue 23882007: Explicit initialization of aura::Env for browser shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chrome_frame_net_tests Created 7 years, 3 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 28c652fff1567c079f76e34fbaaebb8182c0b4aa..8806bb45ea466d1a2a71999d109a7ce7514542a2 100644
--- a/ash/test/ash_test_helper.cc
+++ b/ash/test/ash_test_helper.cc
@@ -110,6 +110,7 @@ void AshTestHelper::TearDown() {
void AshTestHelper::RunAllPendingInMessageLoop() {
DCHECK(base::MessageLoopForUI::current() == message_loop_);
+ aura::Env::CreateInstance();
base::RunLoop run_loop(aura::Env::GetInstance()->GetDispatcher());
run_loop.RunUntilIdle();
}

Powered by Google App Engine
This is Rietveld 408576698