summaryrefslogtreecommitdiffstats
path: root/android_webview/java
diff options
context:
space:
mode:
authorhjd <hjd@chromium.org>2014-09-30 11:58:53 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-30 18:59:07 +0000
commit12c017124f188e2b2e56c3b1a68e2cf9d62fcf96 (patch)
treee207fb2833ac52d6eacaf0e2a692ce42d13586bf /android_webview/java
parentaf41684421a077cb0d3f87c904de83ce13423b47 (diff)
downloadchromium_src-12c017124f188e2b2e56c3b1a68e2cf9d62fcf96.zip
chromium_src-12c017124f188e2b2e56c3b1a68e2cf9d62fcf96.tar.gz
chromium_src-12c017124f188e2b2e56c3b1a68e2cf9d62fcf96.tar.bz2
Fix the CommandLine for the WebView
The CookieManager startup path needs access to the CommandLine before initialization. BUG=331424 Review URL: https://codereview.chromium.org/617883003 Cr-Commit-Position: refs/heads/master@{#297469}
Diffstat (limited to 'android_webview/java')
-rw-r--r--android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java b/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java
index 154179c..a38451d 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java
@@ -35,6 +35,10 @@ public abstract class AwBrowserProcess {
} catch (ProcessInitException e) {
throw new RuntimeException("Cannot load WebView", e);
}
+ // Switch the command line implementation from Java to native.
+ // It's okay for the WebView to do this before initialization because we have
+ // setup the JNI bindings by this point.
+ LibraryLoader.switchCommandLineForWebView();
}
/**