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

Unified Diff: android_webview/browser/net/aw_url_request_context_getter.cc

Issue 427673006: disable WebView SSL exception when command line flag ignore-certificate-errors is given (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: handle SSL exception by passing ignore flag to network session parameters Created 6 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/net/aw_url_request_context_getter.cc
diff --git a/android_webview/browser/net/aw_url_request_context_getter.cc b/android_webview/browser/net/aw_url_request_context_getter.cc
index 94da7366edbc5b2078a6871a7ee754b18dd5d6c0..d2edca15815fd95dc40d28c706caaeaa81a3d3e4 100644
--- a/android_webview/browser/net/aw_url_request_context_getter.cc
+++ b/android_webview/browser/net/aw_url_request_context_getter.cc
@@ -78,6 +78,11 @@ void ApplyCmdlineOverridesToNetworkSessionParams(
switches::kTestingFixedHttpsPort), &value);
params->testing_fixed_https_port = value;
}
+ if (command_line.HasSwitch(switches::kIgnoreCertificateErrors)) {
+ params->ignore_certificate_errors = true;
+ } else {
+ params->ignore_certificate_errors = false;
sgurun-gerrit only 2014/07/29 22:21:18 default is false, so no need to do it (and it seem
+ }
}
void PopulateNetworkSessionParams(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698