| 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..d7c99d44e9a8fe6b8c2bb0b4e57a78131a27dd2d 100644
|
| --- a/content/app/mojo/mojo_init.cc
|
| +++ b/content/app/mojo/mojo_init.cc
|
| @@ -7,9 +7,15 @@
|
| #include "base/lazy_instance.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "ipc/ipc_channel.h"
|
| +
|
| +#if defined(USE_CHROME_EDK)
|
| +#include "mojo/edk/embedder/embedder.h"
|
| +#include "mojo/edk/embedder/simple_platform_support.h"
|
| +#else
|
| #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"
|
| +#endif
|
|
|
| namespace content {
|
|
|
| @@ -18,8 +24,12 @@ namespace {
|
| class MojoInitializer {
|
| public:
|
| MojoInitializer() {
|
| +#if defined(USE_CHROME_EDK)
|
| + mojo::embedder::SetMaxMessageSize(IPC::Channel::kMaximumMessageSize);
|
| +#else
|
| mojo::embedder::GetConfiguration()->max_message_num_bytes =
|
| IPC::Channel::kMaximumMessageSize;
|
| +#endif
|
| mojo::embedder::Init(scoped_ptr<mojo::embedder::PlatformSupport>(
|
| new mojo::embedder::SimplePlatformSupport()));
|
| }
|
|
|