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

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

Issue 212873003: Store the language code for the address in autofill profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 6 years, 9 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.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc
index c079e3d9c5cb82b28f4f32eeede7e9bb599d704c..4c9288f954fde7515fb3317b3f9a140cdf1627e2 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_i18n_input.cc
@@ -38,12 +38,12 @@ DetailInput::Length LengthFromHint(AddressUiComponent::LengthHint hint) {
void BuildAddressInputs(common::AddressType address_type,
const std::string& country_code,
- DetailInputs* inputs) {
- // TODO(rouslan): Store the language code for the autofill profile.
- // http://crbug.com/354955
+ DetailInputs* inputs,
+ std::string* languge_code) {
std::vector<AddressUiComponent> components(
::i18n::addressinput::BuildComponents(
- country_code, g_browser_process->GetApplicationLocale(), NULL));
+ country_code, g_browser_process->GetApplicationLocale(),
+ languge_code));
const bool billing = address_type == common::ADDRESS_TYPE_BILLING;

Powered by Google App Engine
This is Rietveld 408576698