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

Unified Diff: android_webview/native/aw_autofill_client.cc

Issue 1136473006: Don't autofill credit cards on non-secure pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nitpick and test run fixes Created 5 years, 6 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
Index: android_webview/native/aw_autofill_client.cc
diff --git a/android_webview/native/aw_autofill_client.cc b/android_webview/native/aw_autofill_client.cc
index 613d22ba8804f7b711196be4fffb220515b86b78..1735344a7073e99fff3c7454cb03590895b1e842 100644
--- a/android_webview/native/aw_autofill_client.cc
+++ b/android_webview/native/aw_autofill_client.cc
@@ -180,6 +180,12 @@ void AwAutofillClient::LinkClicked(const GURL& url,
NOTIMPLEMENTED();
}
+bool AwAutofillClient::IsContextSecure(const GURL& form_origin) {
+ // TODO (sigbjorn): Return if the context is secure, not just
boliu 2015/06/30 16:20:06 Android webview can use the same implementation as
sigbjorn 2015/07/01 07:28:14 Good point. Perhaps bondd can answer this question
+ // the form_origin. See crbug.com/505390
+ return form_origin.SchemeIsCryptographic();
+}
+
void AwAutofillClient::SuggestionSelected(JNIEnv* env,
jobject object,
jint position) {

Powered by Google App Engine
This is Rietveld 408576698