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

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

Issue 24538008: rAc: phone number cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixme 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
Index: components/autofill/core/browser/phone_number_i18n.h
diff --git a/components/autofill/core/browser/phone_number_i18n.h b/components/autofill/core/browser/phone_number_i18n.h
index 3fcc824280ad5088bfc9cadc4eb5a881d269deb6..0e0549e3167f71ba78029efa47ffc3f2d979c5be 100644
--- a/components/autofill/core/browser/phone_number_i18n.h
+++ b/components/autofill/core/browser/phone_number_i18n.h
@@ -64,6 +64,12 @@ bool PhoneNumbersMatch(const base::string16& number_a,
const std::string& region,
const std::string& app_locale);
+// Takes a phone number provided by a user and returns a string formatted for
+// display in the national format of the region defined by |region|. If
+// the phone number could not be parsed this may return an empty string.
+base::string16 FormatPhoneNumberForRegion(const base::string16& whole_number,
+ const std::string& region);
+
// The cached phone number, does parsing only once, improves performance.
class PhoneObject {
public:

Powered by Google App Engine
This is Rietveld 408576698