Index: content/app/mojo/mojo_init.cc |
diff --git a/content/app/mojo/mojo_init.cc b/content/app/mojo/mojo_init.cc |
index 755b6b19b9fce7e897a58db112a3ffb273b86055..ec9be6621f8e21b7602b821b39ba661f5f8bc71f 100644 |
--- a/content/app/mojo/mojo_init.cc |
+++ b/content/app/mojo/mojo_init.cc |
@@ -5,12 +5,18 @@ |
#include "content/app/mojo/mojo_init.h" |
#include "base/memory/scoped_ptr.h" |
+#include "mojo/edk/embedder/configuration.h" |
#include "mojo/edk/embedder/embedder.h" |
#include "mojo/edk/embedder/simple_platform_support.h" |
namespace content { |
void InitializeMojo() { |
+ // Things like content_shell and DevTools ocassionally send big |
+ // message which includes whole rendered screen or all loaded |
+ // scripts. The buffer size has to be big enough to allow such use |
+ // cases. |
+ mojo::embedder::GetConfiguration()->max_message_num_bytes = 256*1024*1024; |
nasko
2014/11/19 22:31:49
I understand 4MB might be too small, but isn't 256
|
mojo::embedder::Init(scoped_ptr<mojo::embedder::PlatformSupport>( |
new mojo::embedder::SimplePlatformSupport())); |
} |