| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/autofill/autofill_dialog_common.h" | 5 #include "chrome/browser/ui/autofill/autofill_dialog_common.h" |
| 6 | 6 |
| 7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
| 8 #include "components/autofill/core/browser/autofill_country.h" | 8 #include "components/autofill/core/browser/autofill_country.h" |
| 9 #include "components/autofill/core/browser/autofill_field.h" | 9 #include "components/autofill/core/browser/autofill_field.h" |
| 10 #include "components/autofill/core/browser/autofill_type.h" | 10 #include "components/autofill/core/browser/autofill_type.h" |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 return base::string16(); | 269 return base::string16(); |
| 270 | 270 |
| 271 if (AutofillType(type).GetStorableType() == ADDRESS_HOME_COUNTRY) { | 271 if (AutofillType(type).GetStorableType() == ADDRESS_HOME_COUNTRY) { |
| 272 AutofillCountry country("US", g_browser_process->GetApplicationLocale()); | 272 AutofillCountry country("US", g_browser_process->GetApplicationLocale()); |
| 273 return country.name(); | 273 return country.name(); |
| 274 } | 274 } |
| 275 | 275 |
| 276 return base::string16(); | 276 return base::string16(); |
| 277 } | 277 } |
| 278 | 278 |
| 279 std::vector<ServerFieldType> TypesFromInputs(const DetailInputs& inputs) { |
| 280 std::vector<ServerFieldType> types; |
| 281 for (size_t i = 0; i < inputs.size(); ++i) { |
| 282 types.push_back(inputs[i].type); |
| 283 } |
| 284 return types; |
| 285 } |
| 286 |
| 279 } // namespace common | 287 } // namespace common |
| 280 } // namespace autofill | 288 } // namespace autofill |
| OLD | NEW |