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

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: Add period Created 5 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
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..3ad7d745d333746a357a834e83ab396f5674304c 100644
--- a/components/autofill/core/browser/test_autofill_client.cc
+++ b/components/autofill/core/browser/test_autofill_client.cc
@@ -11,7 +11,8 @@ namespace autofill {
TestAutofillClient::TestAutofillClient()
: token_service_(new FakeOAuth2TokenService()),
identity_provider_(new FakeIdentityProvider(token_service_.get())),
- rappor_service_(new rappor::TestRapporService()) {
+ rappor_service_(new rappor::TestRapporService()),
+ is_context_secure_(true) {
}
TestAutofillClient::~TestAutofillClient() {
}
@@ -104,4 +105,7 @@ void TestAutofillClient::LinkClicked(const GURL& url,
WindowOpenDisposition disposition) {
}
+bool TestAutofillClient::IsContextSecure(const GURL& form_origin) {
+ return is_context_secure_;
+}
} // namespace autofill
« no previous file with comments | « components/autofill/core/browser/test_autofill_client.h ('k') | ios/chrome/browser/ui/autofill/autofill_client_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698