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

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: Upload 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..0da05c3e708627ca0496023c90c64a934293868a 100644
--- a/components/autofill/core/browser/autofill_field.h
+++ b/components/autofill/core/browser/autofill_field.h
@@ -75,6 +75,12 @@ class AutofillField : public FormFieldData {
const std::string& app_locale,
FormFieldData* field_data);
+ // Get value for phone number. The value could be |number|, or possibly an
+ // appropriate substring of |number| if it's for phone prefix or suffix field.
Ilya Sherman 2014/09/11 05:32:14 nit: Suggested rephrasing; feel free to further im
ziran.sun 2014/09/22 13:46:33 Done.
+ 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