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

Unified Diff: chrome/browser/autofill/phone_number.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/phone_number.h ('k') | chrome/browser/autofill/select_control_handler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/phone_number.cc
diff --git a/chrome/browser/autofill/phone_number.cc b/chrome/browser/autofill/phone_number.cc
index 4c78cc427a31f787bbaf1a763b24ad45da3b12a4..45c158accf670f54710cc0ce81dc707c932f43be 100644
--- a/chrome/browser/autofill/phone_number.cc
+++ b/chrome/browser/autofill/phone_number.cc
@@ -59,7 +59,7 @@ void PhoneNumber::GetSupportedTypes(FieldTypeSet* supported_types) const {
supported_types->insert(PHONE_HOME_COUNTRY_CODE);
}
-string16 PhoneNumber::GetInfo(AutofillFieldType type) const {
+string16 PhoneNumber::GetRawInfo(AutofillFieldType type) const {
if (type == PHONE_HOME_WHOLE_NUMBER)
return number_;
@@ -85,7 +85,7 @@ string16 PhoneNumber::GetInfo(AutofillFieldType type) const {
return string16();
}
-void PhoneNumber::SetInfo(AutofillFieldType type, const string16& value) {
+void PhoneNumber::SetRawInfo(AutofillFieldType type, const string16& value) {
if (type != PHONE_HOME_CITY_AND_NUMBER &&
type != PHONE_HOME_WHOLE_NUMBER) {
// Only full phone numbers should be set directly. The remaining field
@@ -102,7 +102,7 @@ void PhoneNumber::SetInfo(AutofillFieldType type, const string16& value) {
// 1-800-FLOWERS -> 18003569377
// If the phone cannot be normalized, returns the stored value verbatim.
string16 PhoneNumber::GetCanonicalizedInfo(AutofillFieldType type) const {
- string16 phone = GetInfo(type);
+ string16 phone = GetRawInfo(type);
if (type != PHONE_HOME_WHOLE_NUMBER)
return phone;
@@ -118,7 +118,7 @@ bool PhoneNumber::SetCanonicalizedInfo(AutofillFieldType type,
const string16& value) {
string16 number = value;
StripPunctuation(&number);
- SetInfo(type, number);
+ SetRawInfo(type, number);
return NormalizePhone();
}
« no previous file with comments | « chrome/browser/autofill/phone_number.h ('k') | chrome/browser/autofill/select_control_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698