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

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

Issue 23033016: Remove autocheckout code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Even more deletes, and Ilya review. Created 7 years, 4 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/form_structure.h
diff --git a/components/autofill/core/browser/form_structure.h b/components/autofill/core/browser/form_structure.h
index 1af765057c25ac7c2d127f9323e8bae3e85003cc..4ec8f9c1ce1449693ffe638f23b2ee22b6d1e1d1 100644
--- a/components/autofill/core/browser/form_structure.h
+++ b/components/autofill/core/browser/form_structure.h
@@ -40,7 +40,6 @@ namespace autofill {
class AutofillMetrics;
-struct AutocheckoutPageMetaData;
struct FormData;
struct FormDataPredictions;
@@ -48,8 +47,7 @@ struct FormDataPredictions;
// in the fields along with additional information needed by Autofill.
class FormStructure {
public:
- FormStructure(const FormData& form,
- const std::string& autocheckout_url_prefix);
+ FormStructure(const FormData& form);
virtual ~FormStructure();
// Runs several heuristics against the form fields to determine their possible
@@ -82,7 +80,6 @@ class FormStructure {
static void ParseQueryResponse(
const std::string& response_xml,
const std::vector<FormStructure*>& forms,
- autofill::AutocheckoutPageMetaData* page_meta_data,
const AutofillMetrics& metric_logger);
// Fills |forms| with the details from the given |form_structures| and their
@@ -164,11 +161,6 @@ class FormStructure {
// |user_submitted| is currently always false.
FormData ToFormData() const;
- bool filled_by_autocheckout() const { return filled_by_autocheckout_; }
- void set_filled_by_autocheckout(bool filled_by_autocheckout) {
- filled_by_autocheckout_ = filled_by_autocheckout;
- }
-
bool operator==(const FormData& form) const;
bool operator!=(const FormData& form) const;
@@ -199,13 +191,9 @@ class FormStructure {
// distinguishing credit card sections from non-credit card ones -- is made.
void IdentifySections(bool has_author_specified_sections);
- bool IsAutocheckoutEnabled() const;
-
// Returns true if field should be skipped when talking to Autofill server.
bool ShouldSkipField(const FormFieldData& field) const;
- // Returns the minimal number of fillable fields required to start autofill.
- size_t RequiredFillableFields() const;
size_t active_field_count() const;
// The name of the form.
@@ -247,13 +235,6 @@ class FormStructure {
// author, via the |autocompletetype| attribute.
bool has_author_specified_types_;
- // The URL prefix matched in autocheckout whitelist. An empty string implies
- // autocheckout is not enabled for this form.
- std::string autocheckout_url_prefix_;
-
- // Whether or not this form was filled by Autocheckout.
- bool filled_by_autocheckout_;
-
DISALLOW_COPY_AND_ASSIGN(FormStructure);
};

Powered by Google App Engine
This is Rietveld 408576698