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

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

Issue 63053003: Ask libaddressinput for address components to use in requestAutocomplete(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: base:: Created 6 years, 12 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/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));
}

Powered by Google App Engine
This is Rietveld 408576698