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

Unified Diff: android_webview/native/aw_contents_statics.cc

Issue 2676913002: Enable HTTP cleartext configuration for Webview (Closed)
Patch Set: better not to break other entry points Created 3 years, 10 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 | « android_webview/java/src/org/chromium/android_webview/AwContentsStatics.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents_statics.cc
diff --git a/android_webview/native/aw_contents_statics.cc b/android_webview/native/aw_contents_statics.cc
index 975c9527ef9c2f32af096a75d7966f774c1f9997..db883d4ea4cc31587c62bd98f56144fbbff65df0 100644
--- a/android_webview/native/aw_contents_statics.cc
+++ b/android_webview/native/aw_contents_statics.cc
@@ -99,6 +99,13 @@ void SetServiceWorkerIoThreadClient(
io_thread_client, browser_context);
}
+// static
+void SetCheckClearTextPermitted(JNIEnv* env,
+ const JavaParamRef<jclass>&,
+ jboolean permitted) {
+ AwURLRequestContextGetter::set_check_cleartext_permitted(permitted);
+}
+
bool RegisterAwContentsStatics(JNIEnv* env) {
return RegisterNativesImpl(env);
}
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AwContentsStatics.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698