Index: ui/aura/test/aura_test_helper.cc |
diff --git a/ui/aura/test/aura_test_helper.cc b/ui/aura/test/aura_test_helper.cc |
index b1801903c809e3a7868f42e2acf610f31913eb07..1d592b4c8e3f6d75cbd6f977fd30ca04a15470f0 100644 |
--- a/ui/aura/test/aura_test_helper.cc |
+++ b/ui/aura/test/aura_test_helper.cc |
@@ -59,6 +59,10 @@ AuraTestHelper::~AuraTestHelper() { |
void AuraTestHelper::SetUp() { |
setup_called_ = true; |
+ |
+ bool allow_test_contexts = true; |
+ ui::Compositor::InitializeContextFactoryForTests(allow_test_contexts); |
+ |
Env::GetInstance(); |
test_screen_.reset(TestScreen::Create()); |
gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, test_screen_.get()); |