| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_i18n_input.h" | 5 #include "chrome/browser/ui/autofill/autofill_dialog_i18n_input.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
| 10 #include "components/autofill/core/browser/field_types.h" | 10 #include "components/autofill/core/browser/field_types.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 base::string16 placeholder = base::UTF8ToUTF16(component.name); | 95 base::string16 placeholder = base::UTF8ToUTF16(component.name); |
| 96 DetailInput input = { length, server_type, placeholder }; | 96 DetailInput input = { length, server_type, placeholder }; |
| 97 inputs->push_back(input); | 97 inputs->push_back(input); |
| 98 } | 98 } |
| 99 } | 99 } |
| 100 | 100 |
| 101 ServerFieldType server_type = | 101 ServerFieldType server_type = |
| 102 billing ? ADDRESS_BILLING_COUNTRY : ADDRESS_HOME_COUNTRY; | 102 billing ? ADDRESS_BILLING_COUNTRY : ADDRESS_HOME_COUNTRY; |
| 103 base::string16 placeholder_text = | 103 base::string16 placeholder_text = |
| 104 l10n_util::GetStringUTF16(IDS_AUTOFILL_FIELD_LABEL_COUNTRY); | 104 l10n_util::GetStringUTF16(IDS_AUTOFILL_FIELD_LABEL_COUNTRY); |
| 105 // TODO(dbeam): unhide so users can switch countries. http://crbug.com/331544 | 105 DetailInput input = { DetailInput::LONG, server_type, placeholder_text }; |
| 106 DetailInput input = { DetailInput::NONE, server_type, placeholder_text }; | |
| 107 inputs->push_back(input); | 106 inputs->push_back(input); |
| 108 } | 107 } |
| 109 | 108 |
| 110 } // namespace i18ninput | 109 } // namespace i18ninput |
| 111 } // namespace autofill | 110 } // namespace autofill |
| OLD | NEW |