From a6e8c49d3b1d9981ebd0e56a89ffc1c79543eb19 Mon Sep 17 00:00:00 2001 From: "joth@chromium.org" Date: Mon, 24 Dec 2012 13:19:37 +0000 Subject: Set kEnableWebViewSynchronousAPIs later Currently it's set too early, and gets overritten when LibraryLoadedOnMainThread re-initializes the command line. BUG= Review URL: https://chromiumcodereview.appspot.com/11662018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174576 0039d316-1c4b-4281-b951-d872f2087c98 --- android_webview/lib/main/webview_entry_point.cc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'android_webview/lib/main/webview_entry_point.cc') diff --git a/android_webview/lib/main/webview_entry_point.cc b/android_webview/lib/main/webview_entry_point.cc index 8a4996f..567161e 100644 --- a/android_webview/lib/main/webview_entry_point.cc +++ b/android_webview/lib/main/webview_entry_point.cc @@ -5,10 +5,8 @@ #include "android_webview/lib/main/aw_main_delegate.h" #include "android_webview/native/android_webview_jni_registrar.h" #include "base/android/jni_android.h" -#include "base/command_line.h" #include "content/public/app/android_library_loader_hooks.h" #include "content/public/app/content_main.h" -#include "content/public/common/content_switches.h" // This is called by the VM when the shared library is first loaded. // Most of the initialization is done in LibraryLoadedOnMainThread(), not here. @@ -21,11 +19,6 @@ JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) { if (!android_webview::RegisterJni(env)) return -1; - // Set the command line to enable synchronous API compatibility. - CommandLine::Init(0, NULL); - CommandLine::ForCurrentProcess()->AppendSwitch( - switches::kEnableWebViewSynchronousAPIs); - content::SetContentMainDelegate(new android_webview::AwMainDelegate()); return JNI_VERSION_1_4; -- cgit v1.1