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

Unified Diff: chrome/browser/autofill/credit_card.h

Issue 6673079: Reduce boxing and unboxing of AutofillFieldType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 9 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 | « chrome/browser/autofill/contact_info.cc ('k') | chrome/browser/autofill/credit_card.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/credit_card.h
diff --git a/chrome/browser/autofill/credit_card.h b/chrome/browser/autofill/credit_card.h
index 84b8d6acdf92c116605461da7c38f3ba2cd3e334..6691ff8b8ee159270c5691cbb05127470bd0b430 100644
--- a/chrome/browser/autofill/credit_card.h
+++ b/chrome/browser/autofill/credit_card.h
@@ -25,12 +25,12 @@ class CreditCard : public FormGroup {
virtual void GetPossibleFieldTypes(const string16& text,
FieldTypeSet* possible_types) const;
virtual void GetAvailableFieldTypes(FieldTypeSet* available_types) const;
- virtual void FindInfoMatches(const AutofillType& type,
+ virtual void FindInfoMatches(AutofillFieldType type,
const string16& info,
std::vector<string16>* matched_text) const;
- virtual string16 GetFieldText(const AutofillType& type) const;
- virtual string16 GetPreviewText(const AutofillType& type) const;
- virtual void SetInfo(const AutofillType& type, const string16& value);
+ virtual string16 GetFieldText(AutofillFieldType type) const;
+ virtual string16 GetPreviewText(AutofillFieldType type) const;
+ virtual void SetInfo(AutofillFieldType type, const string16& value);
virtual const string16 Label() const;
// Special method to set value for HTML5 month input type.
@@ -109,7 +109,7 @@ class CreditCard : public FormGroup {
// A helper function for FindInfoMatches that only handles matching the info
// with the requested field type.
- bool FindInfoMatchesHelper(const AutofillFieldType& field_type,
+ bool FindInfoMatchesHelper(AutofillFieldType field_type,
const string16& info,
string16* match) const;
« no previous file with comments | « chrome/browser/autofill/contact_info.cc ('k') | chrome/browser/autofill/credit_card.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698