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

Unified Diff: mojo/go/c_embedder/c_embedder.cc

Issue 556813003: Add Go build support for GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: brettw feedback Created 6 years, 3 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: mojo/go/c_embedder/c_embedder.cc
diff --git a/content/app/mojo/mojo_init.cc b/mojo/go/c_embedder/c_embedder.cc
similarity index 72%
copy from content/app/mojo/mojo_init.cc
copy to mojo/go/c_embedder/c_embedder.cc
index be427a4ff56e947adf957c0db8bc8e4d0fc22925..00104dce616589d38bc47cb233d8746b69f93cf1 100644
--- a/content/app/mojo/mojo_init.cc
+++ b/mojo/go/c_embedder/c_embedder.cc
@@ -2,17 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/app/mojo/mojo_init.h"
+#include "mojo/go/c_embedder/c_embedder.h"
#include "base/memory/scoped_ptr.h"
#include "mojo/embedder/embedder.h"
#include "mojo/embedder/simple_platform_support.h"
-namespace content {
+#ifdef __cplusplus
+extern "C" {
+#endif
-void InitializeMojo() {
+void InitializeMojoEmbedder() {
mojo::embedder::Init(scoped_ptr<mojo::embedder::PlatformSupport>(
new mojo::embedder::SimplePlatformSupport()));
}
-} // namespace content
+#ifdef __cplusplus
+} // extern "C"
+#endif

Powered by Google App Engine
This is Rietveld 408576698