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

Unified Diff: trunk/src/content/common/mojo/mojo_channel_init.cc

Issue 208263008: Revert 258763 "Adds plumbing to pass WebUI mojo::Handle from bro..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 | « trunk/src/content/common/mojo/mojo_channel_init.h ('k') | trunk/src/content/common/mojo/mojo_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/common/mojo/mojo_channel_init.cc
===================================================================
--- trunk/src/content/common/mojo/mojo_channel_init.cc (revision 258768)
+++ trunk/src/content/common/mojo/mojo_channel_init.cc (working copy)
@@ -20,7 +20,16 @@
}
};
+static base::LazyInstance<Initializer>::Leaky initializer =
+ LAZY_INSTANCE_INITIALIZER;
+// Initializes mojo. Use a lazy instance to ensure we only do this once.
+// TODO(sky): this likely wants to move to a more central location, such as
+// startup.
+void InitMojo() {
+ initializer.Get();
+}
+
} // namespace
MojoChannelInit::MojoChannelInit()
@@ -37,16 +46,6 @@
}
}
-// static
-void MojoChannelInit::InitMojo() {
- static base::LazyInstance<Initializer>::Leaky initializer =
- LAZY_INSTANCE_INITIALIZER;
- // Initializes mojo. Use a lazy instance to ensure we only do this once.
- // TODO(sky): this likely wants to move to a more central location, such as
- // startup.
- initializer.Get();
-}
-
void MojoChannelInit::Init(
base::PlatformFile file,
scoped_refptr<base::TaskRunner> io_thread_task_runner) {
« no previous file with comments | « trunk/src/content/common/mojo/mojo_channel_init.h ('k') | trunk/src/content/common/mojo/mojo_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698