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

Unified Diff: components/autofill/core/browser/test_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: Remove default fallback for IsContextSecure, implement in inherited classes 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: components/autofill/core/browser/test_autofill_client.cc
diff --git a/components/autofill/core/browser/test_autofill_client.cc b/components/autofill/core/browser/test_autofill_client.cc
index 2edb6444d354893bd672a1bc50897a14fb5d78a8..7a7c6f16437c0136b733730281c686b49fdb0611 100644
--- a/components/autofill/core/browser/test_autofill_client.cc
+++ b/components/autofill/core/browser/test_autofill_client.cc
@@ -104,4 +104,12 @@ void TestAutofillClient::LinkClicked(const GURL& url,
WindowOpenDisposition disposition) {
}
+bool TestAutofillClient::IsContextSecure(const GURL& form_origin) {
+ return is_context_secure_;
+}
+
+void TestAutofillClient::SetContextSecurity(bool is_context_secure) {
+ is_context_secure_ = is_context_secure;
+}
+
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698