Chromium Code Reviews| Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
| index b60a75f4844636d63d43591ab43b004140111dcf..2ba4e03fda22d21fe93de73cc88dab052af1d567 100644 |
| --- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
| +++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
| @@ -201,14 +201,9 @@ void FillFormGroupFromOutputs(const FieldValueMap& detail_outputs, |
| iter != detail_outputs.end(); ++iter) { |
| ServerFieldType type = iter->first; |
| if (!iter->second.empty()) { |
| - if (type == ADDRESS_HOME_COUNTRY || type == ADDRESS_BILLING_COUNTRY) { |
| - form_group->SetInfo(AutofillType(type), |
| - iter->second, |
| - g_browser_process->GetApplicationLocale()); |
| - } else { |
| - form_group->SetRawInfo( |
| - AutofillType(type).GetStorableType(), iter->second); |
| - } |
| + form_group->SetInfo(AutofillType(type), |
| + iter->second, |
| + g_browser_process->GetApplicationLocale()); |
|
Ilya Sherman
2014/06/27 06:25:08
Note that SetInfo() can override user-specified fo
Evan Stade
2014/06/28 01:01:35
When is SetInfo meant to be called? Isn't it for d
Ilya Sherman
2014/07/01 02:55:17
SetInfo() is meant to be called on data that's com
Evan Stade
2014/07/01 23:18:52
I'm actually OK with preserving user formatting (w
Ilya Sherman
2014/07/02 00:02:15
There are plenty of forms out there that impose th
Evan Stade
2014/07/07 16:20:52
I see. And instead we impose the formatting that C
Ilya Sherman
2014/07/08 00:35:09
Well, the most common case in the US is that the p
|
| } |
| } |
| } |
| @@ -3051,7 +3046,10 @@ void AutofillDialogControllerImpl::SuggestionsUpdated() { |
| const std::vector<AutofillProfile*>& profiles = manager->GetProfiles(); |
| std::vector<base::string16> labels; |
| - AutofillProfile::CreateDifferentiatingLabels(profiles, &labels); |
| + AutofillProfile::CreateDifferentiatingLabels( |
| + profiles, |
| + g_browser_process->GetApplicationLocale(), |
| + &labels); |
| DCHECK_EQ(labels.size(), profiles.size()); |
| for (size_t i = 0; i < profiles.size(); ++i) { |
| const AutofillProfile& profile = *profiles[i]; |