Index: android_webview/lib/main/aw_main_delegate.cc |
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc |
index 5b79eb6ff2854d121859fba72c4300ac697a203e..b7aa7daaf86b3d568f2f534e7787b8c0da6b0693 100644 |
--- a/android_webview/lib/main/aw_main_delegate.cc |
+++ b/android_webview/lib/main/aw_main_delegate.cc |
@@ -23,6 +23,7 @@ |
#include "content/public/browser/browser_main_runner.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/common/content_switches.h" |
+#include "content/public/common/url_utils.h" |
#include "gpu/command_buffer/client/gl_in_process_context.h" |
#include "gpu/command_buffer/service/in_process_command_buffer.h" |
#include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" |
@@ -48,6 +49,10 @@ AwMainDelegate::~AwMainDelegate() { |
bool AwMainDelegate::BasicStartupComplete(int* exit_code) { |
content::SetContentClient(&content_client_); |
+ // This is needed for WebView Classic backwards compatibility |
+ // See crbug.com/298495 |
+ content::SetMaxURLChars(20 * 1024 * 1024); |
+ |
gpu::InProcessCommandBuffer::SetGpuMemoryBufferFactory( |
gpu_memory_buffer_factory_.get()); |
gpu::InProcessCommandBuffer::EnableVirtualizedContext(); |