Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index 6f2a7e4e960bf9dc92bc50a8a5b0567e6aa51442..87997980461eb6bd30379e148339b44742dd63d6 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -67,6 +67,7 @@ |
#endif |
#if defined(USE_AURA) |
+#include "content/public/browser/context_factory.h" |
#include "ui/aura/env.h" |
#endif |
@@ -942,6 +943,12 @@ int BrowserMainLoop::BrowserThreadsStarted() { |
} |
BrowserGpuChannelHostFactory::Initialize(established_gpu_channel); |
ImageTransportFactory::Initialize(); |
+#if defined(USE_AURA) |
+ if (aura::Env::GetInstance()) { |
+ aura::Env::GetInstance()->set_context_factory( |
+ content::GetContextFactory()); |
+ } |
+#endif |
} |
#elif defined(OS_ANDROID) |
established_gpu_channel = true; |