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

Unified Diff: mojo/public/system/core_private.cc

Issue 140403002: Mojo: Add the ability to hook up a channel to the embedder API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win Created 6 years, 11 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 | « mojo/public/system/core_private.h ('k') | mojo/system/core_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/system/core_private.cc
diff --git a/mojo/public/system/core_private.cc b/mojo/public/system/core_private.cc
index 3b657ee0e99c82d0e8f83e00837ffb12236e59e9..f0bc3f156bee96d9d967ae6eaa3d7ebff28da8ea 100644
--- a/mojo/public/system/core_private.cc
+++ b/mojo/public/system/core_private.cc
@@ -128,9 +128,20 @@ namespace mojo {
Core::~Core() {
}
+// static
void Core::Init(Core* core) {
assert(!g_core);
g_core = core;
}
+// static
+Core* Core::Get() {
+ return g_core;
+}
+
+// static
+void Core::Reset() {
+ g_core = NULL;
+}
+
} // namespace mojo
« no previous file with comments | « mojo/public/system/core_private.h ('k') | mojo/system/core_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698