Chromium Code Reviews| Index: chrome/browser/ui/autofill/data_model_wrapper.cc |
| diff --git a/chrome/browser/ui/autofill/data_model_wrapper.cc b/chrome/browser/ui/autofill/data_model_wrapper.cc |
| index f2762daefeb0a461b4b9e72f540a67e1b2b8f9f0..eef260cfed838e86c46a6d83228ed0ca45d83144 100644 |
| --- a/chrome/browser/ui/autofill/data_model_wrapper.cc |
| +++ b/chrome/browser/ui/autofill/data_model_wrapper.cc |
| @@ -28,10 +28,12 @@ namespace autofill { |
| DataModelWrapper::~DataModelWrapper() {} |
| -void DataModelWrapper::FillInputs(DetailInputs* inputs) { |
| +void DataModelWrapper::FillInputs(DetailInputs* inputs, |
| + const std::string& country_code) { |
| for (size_t i = 0; i < inputs->size(); ++i) { |
| DetailInput* input = &(*inputs)[i]; |
| - input->initial_value = common::GetHardcodedValueForType(input->type); |
| + input->initial_value = common::GetInitialValueForType(input->type, |
|
Evan Stade
2014/01/02 22:59:26
I was hoping we could get rid of this
|
| + country_code); |
| if (input->initial_value.empty()) |
| input->initial_value = GetInfo(AutofillType(input->type)); |
| } |