summaryrefslogtreecommitdiffstats
path: root/android_webview/lib
diff options
context:
space:
mode:
Diffstat (limited to 'android_webview/lib')
-rw-r--r--android_webview/lib/main/webview_entry_point.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/android_webview/lib/main/webview_entry_point.cc b/android_webview/lib/main/webview_entry_point.cc
index 858601f3..7038416 100644
--- a/android_webview/lib/main/webview_entry_point.cc
+++ b/android_webview/lib/main/webview_entry_point.cc
@@ -10,6 +10,7 @@
#include "components/web_contents_delegate_android/component_jni_registrar.h"
#include "content/public/app/android_library_loader_hooks.h"
#include "content/public/app/content_main.h"
+#include "url/url_util.h"
static base::android::RegistrationMethod
kWebViewDependencyRegisteredMethods[] = {
@@ -44,5 +45,10 @@ JNI_EXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) {
content::SetContentMainDelegate(new android_webview::AwMainDelegate());
+ // Initialize url_util here while we are still single-threaded, in case we use
+ // CookieManager before initializing Chromium (which would normally have done
+ // this). It's safe to call this multiple times.
+ url_util::Initialize();
+
return JNI_VERSION_1_4;
}