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

Unified Diff: components/autofill/core/browser/test_autofill_client.cc

Issue 2419853002: [Autofill] Do not offer autofill suggestions on insecure forms (Closed)
Patch Set: Scheme check for HTTPS Created 4 years, 2 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 | « components/autofill/core/browser/test_autofill_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c97e95c6551ef5b4efdfe42a202dd3b639d0b468..5913dedf3bf04f9fc2f7c38acf27b84ee23e0dcf 100644
--- a/components/autofill/core/browser/test_autofill_client.cc
+++ b/components/autofill/core/browser/test_autofill_client.cc
@@ -11,9 +11,7 @@ namespace autofill {
TestAutofillClient::TestAutofillClient()
: token_service_(new FakeOAuth2TokenService()),
identity_provider_(new FakeIdentityProvider(token_service_.get())),
- rappor_service_(new rappor::TestRapporService()),
- is_context_secure_(true) {
-}
+ rappor_service_(new rappor::TestRapporService()) {}
TestAutofillClient::~TestAutofillClient() {
}
@@ -118,7 +116,8 @@ void TestAutofillClient::OnFirstUserGestureObserved() {
}
bool TestAutofillClient::IsContextSecure(const GURL& form_origin) {
- return is_context_secure_;
+ // Simplified secure context check for tests.
+ return form_origin.SchemeIs("https");
}
bool TestAutofillClient::ShouldShowSigninPromo() {
« no previous file with comments | « components/autofill/core/browser/test_autofill_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698