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

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

Issue 8169009: Remove FieldTypeSubGroups from the AutofillType class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests compile Created 9 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 | « chrome/browser/autofill/autofill_profile.cc ('k') | chrome/browser/autofill/autofill_type.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_type.h
diff --git a/chrome/browser/autofill/autofill_type.h b/chrome/browser/autofill/autofill_type.h
index b543aca2a7e8f3a259b48461a4da92394d37ac88..263b5099f841fdccda4861d0bab4e905b1d0a7f5 100644
--- a/chrome/browser/autofill/autofill_type.h
+++ b/chrome/browser/autofill/autofill_type.h
@@ -24,41 +24,16 @@ class AutofillType {
COMPANY,
ADDRESS_HOME,
ADDRESS_BILLING,
- PHONE_HOME,
+ PHONE,
CREDIT_CARD,
};
- enum FieldTypeSubGroup {
- NO_SUBGROUP,
- // Address subgroups.
- ADDRESS_LINE1,
- ADDRESS_LINE2,
- ADDRESS_APT_NUM,
- ADDRESS_CITY,
- ADDRESS_STATE,
- ADDRESS_ZIP,
- ADDRESS_COUNTRY,
-
- // Phone subgroups.
- PHONE_NUMBER,
- PHONE_CITY_CODE,
- PHONE_COUNTRY_CODE,
- PHONE_CITY_AND_NUMBER,
- PHONE_WHOLE_NUMBER
- };
-
- struct AutofillTypeDefinition {
- FieldTypeGroup group;
- FieldTypeSubGroup subgroup;
- };
-
explicit AutofillType(AutofillFieldType field_type);
AutofillType(const AutofillType& autofill_type);
AutofillType& operator=(const AutofillType& autofill_type);
AutofillFieldType field_type() const;
FieldTypeGroup group() const;
- FieldTypeSubGroup subgroup() const;
// Maps |field_type| to a field type that can be directly stored in a profile
// (in the sense that it makes sense to call |AutofillProfile::SetInfo()| with
@@ -74,7 +49,6 @@ class AutofillType {
};
typedef AutofillType::FieldTypeGroup FieldTypeGroup;
-typedef AutofillType::FieldTypeSubGroup FieldTypeSubGroup;
typedef std::set<AutofillFieldType> FieldTypeSet;
typedef std::map<string16, AutofillFieldType> FieldTypeMap;
« no previous file with comments | « chrome/browser/autofill/autofill_profile.cc ('k') | chrome/browser/autofill/autofill_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698