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

Unified Diff: chrome/browser/autofill/contact_info.cc

Issue 11360055: [Autofill] Rename GetInfo and SetInfo to GetRawInfo and SetRawInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase harder Created 8 years, 1 month 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.h ('k') | chrome/browser/autofill/contact_info_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/contact_info.cc
diff --git a/chrome/browser/autofill/contact_info.cc b/chrome/browser/autofill/contact_info.cc
index c3a92d83553d72b9a54e9e2e9649cce7d562e7c0..9aca71e96ea54b73f1d840f8e490ddd7711793fc 100644
--- a/chrome/browser/autofill/contact_info.cc
+++ b/chrome/browser/autofill/contact_info.cc
@@ -50,7 +50,7 @@ void NameInfo::GetSupportedTypes(FieldTypeSet* supported_types) const {
supported_types->insert(NAME_FULL);
}
-string16 NameInfo::GetInfo(AutofillFieldType type) const {
+string16 NameInfo::GetRawInfo(AutofillFieldType type) const {
if (type == NAME_FIRST)
return first();
@@ -69,7 +69,7 @@ string16 NameInfo::GetInfo(AutofillFieldType type) const {
return string16();
}
-void NameInfo::SetInfo(AutofillFieldType type, const string16& value) {
+void NameInfo::SetRawInfo(AutofillFieldType type, const string16& value) {
DCHECK_EQ(AutofillType::NAME, AutofillType(type).group());
if (type == NAME_FIRST)
first_ = value;
@@ -151,14 +151,14 @@ void EmailInfo::GetSupportedTypes(FieldTypeSet* supported_types) const {
supported_types->insert(EMAIL_ADDRESS);
}
-string16 EmailInfo::GetInfo(AutofillFieldType type) const {
+string16 EmailInfo::GetRawInfo(AutofillFieldType type) const {
if (type == EMAIL_ADDRESS)
return email_;
return string16();
}
-void EmailInfo::SetInfo(AutofillFieldType type, const string16& value) {
+void EmailInfo::SetRawInfo(AutofillFieldType type, const string16& value) {
DCHECK_EQ(EMAIL_ADDRESS, type);
email_ = value;
}
@@ -183,14 +183,14 @@ void CompanyInfo::GetSupportedTypes(FieldTypeSet* supported_types) const {
supported_types->insert(COMPANY_NAME);
}
-string16 CompanyInfo::GetInfo(AutofillFieldType type) const {
+string16 CompanyInfo::GetRawInfo(AutofillFieldType type) const {
if (type == COMPANY_NAME)
return company_name_;
return string16();
}
-void CompanyInfo::SetInfo(AutofillFieldType type, const string16& value) {
+void CompanyInfo::SetRawInfo(AutofillFieldType type, const string16& value) {
DCHECK_EQ(COMPANY_NAME, type);
company_name_ = value;
}
« no previous file with comments | « chrome/browser/autofill/contact_info.h ('k') | chrome/browser/autofill/contact_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698