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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_i18n_input.h

Issue 212873003: Store the language code for the address in autofill profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixups Created 6 years, 8 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: chrome/browser/ui/autofill/autofill_dialog_i18n_input.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.h b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.h
index 0384e1b6f5515a4d1cca7ba98c41a215062f11f1..6775176b494f49654faf1dac9e28233c91bada49 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.h
@@ -27,12 +27,20 @@ class CreditCard;
namespace i18ninput {
-// Builds internationalized address input fields for |country_code| and adds
-// them (at most 13) to |inputs|. |address_type| is which kind of address to
-// build (e.g. billing or shipping).
+// Builds internationalized address input fields for |address_type| (e.g.
+// billing or shipping) in |country_code| (e.g. "US" or "CH").
+//
+// The |inputs| and |language_code| are output-only parameters.
+//
+// The function adds the fields (at most 13) to |inputs|. This parameter should
+// not be NULL.
+//
+// The function sets the |language_code| to be used for address formatting. This
+// parameter can be NULL.
void BuildAddressInputs(common::AddressType address_type,
const std::string& country_code,
- DetailInputs* inputs);
+ DetailInputs* inputs,
+ std::string* language_code);
// Returns whether the given card is complete and verified (i.e. was reviewed
// by the user and not just automatically aggregated).

Powered by Google App Engine
This is Rietveld 408576698