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

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

Issue 442403002: Adjust displayed phone number for prefix/suffix case. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove duplicate documentation. Created 6 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 | « no previous file | components/autofill/core/browser/autofill_field.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_field.h
diff --git a/components/autofill/core/browser/autofill_field.h b/components/autofill/core/browser/autofill_field.h
index d32b972f8a981c2979775753e823075bcd01ac73..1c79bb2fd001fc090115c738fb06e06054185923 100644
--- a/components/autofill/core/browser/autofill_field.h
+++ b/components/autofill/core/browser/autofill_field.h
@@ -82,6 +82,13 @@ class AutofillField : public FormFieldData {
const std::string& app_locale,
FormFieldData* field_data);
+ // Returns the phone number value for the given |field|. The returned value
+ // might be |number|, or could possibly be a prefix or suffix of |number|
+ // if that's appropriate for the field.
+ static base::string16 GetPhoneNumberValue(const AutofillField& field,
+ const base::string16& number,
+ const FormFieldData& field_data);
+
private:
// The unique name of this field, generated by Autofill.
base::string16 unique_name_;
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698