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

Unified Diff: content/browser/context_factory.cc

Issue 276973002: Adds getter for ContextFactory to content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: include 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
« no previous file with comments | « content/browser/compositor/no_transport_image_transport_factory.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/context_factory.cc
diff --git a/content/browser/context_factory.cc b/content/browser/context_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b9dfacc0dec0e12bbe11b7cd1239d629578499fb
--- /dev/null
+++ b/content/browser/context_factory.cc
@@ -0,0 +1,16 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/public/browser/context_factory.h"
+
+#include "content/browser/compositor/image_transport_factory.h"
+
+namespace content {
+
+ui::ContextFactory* GetContextFactory() {
+ DCHECK(ImageTransportFactory::GetInstance());
+ return ImageTransportFactory::GetInstance()->GetContextFactory();
+}
+
+} // namespace content
« no previous file with comments | « content/browser/compositor/no_transport_image_transport_factory.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698