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

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

Issue 741813002: Mojo: Raise the message size limit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 64MB Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3b08791a8c8a8b0edab3ff1baa0ea8be903d9a03 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 = 64*1024*1024;
mojo::embedder::Init(scoped_ptr<mojo::embedder::PlatformSupport>(
new mojo::embedder::SimplePlatformSupport()));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698