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

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

Issue 2093363002: Autofill address editor in PaymentRequest UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@contact-editor
Patch Set: Fix try-bot Created 4 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 11a6c59b3fcf5d2056c395a279f37fa5a16c61e4..a389badfca72df73e84febdb194ffbbcb4f54f7d 100644
--- a/components/autofill/core/browser/autofill_profile.h
+++ b/components/autofill/core/browser/autofill_profile.h
@@ -159,6 +159,14 @@ class AutofillProfile : public AutofillDataModel {
const std::string& app_locale,
std::vector<base::string16>* labels);
+ // Builds inferred label from the first |num_fields_to_include| non-empty
+ // fields in |label_fields|. Uses as many fields as possible if there are not
+ // enough non-empty fields.
+ base::string16 ConstructInferredLabel(
+ const std::vector<ServerFieldType>& label_fields,
+ size_t num_fields_to_include,
+ const std::string& app_locale) const;
+
const std::string& language_code() const { return language_code_; }
void set_language_code(const std::string& language_code) {
language_code_ = language_code;
@@ -193,14 +201,6 @@ class AutofillProfile : public AutofillDataModel {
// FormGroup:
void GetSupportedTypes(ServerFieldTypeSet* supported_types) const override;
- // Builds inferred label from the first |num_fields_to_include| non-empty
- // fields in |label_fields|. Uses as many fields as possible if there are not
- // enough non-empty fields.
- base::string16 ConstructInferredLabel(
- const std::vector<ServerFieldType>& label_fields,
- 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
// |labels|. These labels include enough fields to differentiate among the
« no previous file with comments | « chrome/test/data/android/payments/dynamic_shipping.js ('k') | components/autofill/core/browser/autofill_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698