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

Unified Diff: content/app/mojo/mojo_init.cc

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more cleanup Created 5 years, 2 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: content/app/mojo/mojo_init.cc
diff --git a/content/app/mojo/mojo_init.cc b/content/app/mojo/mojo_init.cc
index bf92f64886f4d65ca69bf30a0982ec4282d6e36f..8a402bc451a67cbb14303ebdb6fca8ecd73ddcf4 100644
--- a/content/app/mojo/mojo_init.cc
+++ b/content/app/mojo/mojo_init.cc
@@ -7,9 +7,7 @@
#include "base/lazy_instance.h"
#include "base/memory/scoped_ptr.h"
#include "ipc/ipc_channel.h"
-#include "third_party/mojo/src/mojo/edk/embedder/configuration.h"
#include "third_party/mojo/src/mojo/edk/embedder/embedder.h"
-#include "third_party/mojo/src/mojo/edk/embedder/simple_platform_support.h"
namespace content {
@@ -18,10 +16,8 @@ namespace {
class MojoInitializer {
public:
MojoInitializer() {
- mojo::embedder::GetConfiguration()->max_message_num_bytes =
- IPC::Channel::kMaximumMessageSize;
- mojo::embedder::Init(scoped_ptr<mojo::embedder::PlatformSupport>(
- new mojo::embedder::SimplePlatformSupport()));
+ mojo::embedder::SetMaxMessageSize(IPC::Channel::kMaximumMessageSize);
+ mojo::embedder::Init();
}
};

Powered by Google App Engine
This is Rietveld 408576698