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

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

Issue 347183005: autofill names - dont parse when calling SetRawInfo(FULL_NAME) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: subtle change Created 6 years, 6 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_profile.h
diff --git a/components/autofill/core/browser/autofill_profile.h b/components/autofill/core/browser/autofill_profile.h
index 7ae95722a1d33408f53235d6012229968359407e..286e9b9e62c9373e9f8827b8bd104d3d1bacc5ff 100644
--- a/components/autofill/core/browser/autofill_profile.h
+++ b/components/autofill/core/browser/autofill_profile.h
@@ -123,6 +123,7 @@ class AutofillProfile : public AutofillDataModel {
// 5. Company name.
static void CreateDifferentiatingLabels(
const std::vector<AutofillProfile*>& profiles,
+ const std::string& app_locale,
std::vector<base::string16>* labels);
// Creates inferred labels for |profiles|, according to the rules above and
@@ -137,6 +138,7 @@ class AutofillProfile : public AutofillDataModel {
const std::vector<ServerFieldType>* suggested_fields,
ServerFieldType excluded_field,
size_t minimal_fields_shown,
+ const std::string& app_locale,
std::vector<base::string16>* labels);
const std::string& language_code() const { return language_code_; }
@@ -171,7 +173,8 @@ class AutofillProfile : public AutofillDataModel {
// enough non-empty fields.
base::string16 ConstructInferredLabel(
const std::vector<ServerFieldType>& label_fields,
- size_t num_fields_to_include) const;
+ size_t num_fields_to_include,
+ const std::string& app_locale) const;
// Creates inferred labels for |profiles| at indices corresponding to
// |indices|, and stores the results to the corresponding elements of
@@ -183,6 +186,7 @@ class AutofillProfile : public AutofillDataModel {
const std::list<size_t>& indices,
const std::vector<ServerFieldType>& fields,
size_t num_fields_to_include,
+ const std::string& app_locale,
std::vector<base::string16>* labels);
// Utilities for listing and lookup of the data members that constitute

Powered by Google App Engine
This is Rietveld 408576698