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

Unified Diff: content/browser/browser_main_loop.cc

Issue 296053009: Makes Env contain a ContextFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: foo Created 6 years, 7 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: 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;

Powered by Google App Engine
This is Rietveld 408576698