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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java

Issue 617883003: Fix the CommandLine for the WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. Created 6 years, 3 months 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 | android_webview/javatests/src/org/chromium/android_webview/test/CommandLineTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java
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 154179c49b28e30b204df4e00c9e852356983342..a38451d45f801d7f7f232040f24cab38666119d3 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();
}
/**
« no previous file with comments | « no previous file | android_webview/javatests/src/org/chromium/android_webview/test/CommandLineTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698