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

Unified Diff: components/autofill/core/browser/phone_number_i18n.cc

Issue 25092011: rAc: update android test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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 | « components/autofill/core/browser/phone_number_i18n.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/phone_number_i18n.cc
diff --git a/components/autofill/core/browser/phone_number_i18n.cc b/components/autofill/core/browser/phone_number_i18n.cc
index 1cb49ca20b343e575a3ee6281b0d7491586aabb7..b3c9d79837ce263f6570946388ee9ef5b78e253d 100644
--- a/components/autofill/core/browser/phone_number_i18n.cc
+++ b/components/autofill/core/browser/phone_number_i18n.cc
@@ -253,8 +253,7 @@ PhoneObject::PhoneObject(const PhoneObject& other) { *this = other; }
PhoneObject::PhoneObject() {}
-PhoneObject::~PhoneObject() {
-}
+PhoneObject::~PhoneObject() {}
base::string16 PhoneObject::GetFormattedNumber() const {
if (i18n_number_ && formatted_number_.empty()) {
@@ -265,6 +264,14 @@ base::string16 PhoneObject::GetFormattedNumber() const {
return formatted_number_;
}
+base::string16 PhoneObject::GetNationallyFormattedNumber() const {
+ base::string16 formatted = whole_number_;
+ if (i18n_number_)
+ FormatValidatedNumber(*i18n_number_, base::string16(), &formatted, NULL);
+
+ return formatted;
+}
+
base::string16 PhoneObject::GetWholeNumber() const {
if (i18n_number_ && whole_number_.empty()) {
FormatValidatedNumber(*i18n_number_, country_code_, &formatted_number_,
« no previous file with comments | « components/autofill/core/browser/phone_number_i18n.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698