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

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: Update code as per review comments. 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
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 b810e76010cef8ce961ae903adce385e093dc2d3..96f07f923b30110a037886af6a4aeead8bf92196 100644
--- a/components/autofill/core/browser/autofill_field.h
+++ b/components/autofill/core/browser/autofill_field.h
@@ -75,6 +75,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') | components/autofill/core/browser/autofill_field.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698