Chromium Code Reviews| Index: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc |
| =================================================================== |
| --- chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (revision 192389) |
| +++ chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc (working copy) |
| @@ -153,8 +153,15 @@ |
| FormGroup* form_group) { |
| for (DetailOutputMap::const_iterator iter = detail_outputs.begin(); |
| iter != detail_outputs.end(); ++iter) { |
| - if (!iter->second.empty()) |
| - form_group->SetRawInfo(iter->first->type, iter->second); |
| + if (!iter->second.empty()) { |
| + if (iter->first->type == ADDRESS_HOME_COUNTRY) { |
| + form_group->SetInfo(ADDRESS_HOME_COUNTRY, |
| + iter->second, |
| + g_browser_process->GetApplicationLocale()); |
| + } else { |
| + form_group->SetRawInfo(iter->first->type, iter->second); |
| + } |
| + } |
| } |
| } |
| @@ -174,6 +181,10 @@ |
| if (it->first->type == CREDIT_CARD_VERIFICATION_CODE) { |
| if (cvc) |
| cvc->assign(trimmed); |
| + } else if (it->first->type == ADDRESS_HOME_COUNTRY) { |
|
Ilya Sherman
2013/04/05 07:18:41
I think you need to handle ADDRESS_BILLING_COUNTRY
jam
2013/04/05 07:35:35
Done.
|
| + profile->SetInfo(ADDRESS_HOME_COUNTRY, |
| + trimmed, |
| + g_browser_process->GetApplicationLocale()); |
| } else { |
| // Copy the credit card name to |profile| in addition to |card| as |
| // wallet::Instrument requires a recipient name for its billing address. |