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

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: 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 66%
copy from content/app/mojo/mojo_init.cc
copy to mojo/go/c_embedder/c_embedder.cc
index 090e69e06fed7c3fe02a0180c44fcba7c9ef7045..00104dce616589d38bc47cb233d8746b69f93cf1 100644
--- a/content/app/mojo/mojo_init.cc
+++ b/mojo/go/c_embedder/c_embedder.cc
@@ -2,19 +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/application_manager/application_manager.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()));
- mojo::ApplicationManager::GetInstance();
}
-} // namespace content
+#ifdef __cplusplus
+} // extern "C"
+#endif

Powered by Google App Engine
This is Rietveld 408576698