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

Unified Diff: components/autofill/core/browser/autofill_manager.h

Issue 2676513007: Do not show Scan or Sign In options when credit card form is non-secure (Closed)
Patch Set: Add unit tests Created 3 years, 10 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 | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_manager.h
diff --git a/components/autofill/core/browser/autofill_manager.h b/components/autofill/core/browser/autofill_manager.h
index d445d38feb9e3c93fa92d1f4d1e9e79f4ac13f4d..51e6550abf39c9326984c40792c04a8a4b3a3574 100644
--- a/components/autofill/core/browser/autofill_manager.h
+++ b/components/autofill/core/browser/autofill_manager.h
@@ -424,6 +424,10 @@ class AutofillManager : public AutofillDownloadManager::Observer,
void UpdateInitialInteractionTimestamp(
const base::TimeTicks& interaction_timestamp);
+ // Examines |form| and returns true if it is in a non-secure context or
+ // its action attribute targets a HTTP url.
+ bool IsFormNonSecure(const FormData& form) const;
+
// Uses the existing personal data in |profiles| and |credit_cards| to
// determine possible field types for the |submitted_form|. This is
// potentially expensive -- on the order of 50ms even for a small set of
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698