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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 base::string16 placeholder = base::UTF8ToUTF16(component.name); | 94 base::string16 placeholder = base::UTF8ToUTF16(component.name); |
95 DetailInput input = { length, server_type, placeholder }; | 95 DetailInput input = { length, server_type, placeholder }; |
96 inputs->push_back(input); | 96 inputs->push_back(input); |
97 } | 97 } |
98 } | 98 } |
99 | 99 |
100 ServerFieldType server_type = | 100 ServerFieldType server_type = |
101 billing ? ADDRESS_BILLING_COUNTRY : ADDRESS_HOME_COUNTRY; | 101 billing ? ADDRESS_BILLING_COUNTRY : ADDRESS_HOME_COUNTRY; |
102 base::string16 placeholder_text = | 102 base::string16 placeholder_text = |
103 l10n_util::GetStringUTF16(IDS_AUTOFILL_FIELD_LABEL_COUNTRY); | 103 l10n_util::GetStringUTF16(IDS_AUTOFILL_FIELD_LABEL_COUNTRY); |
104 // TODO(dbeam): unhide so users can switch countries. http://crbug.com/331544 | 104 DetailInput input = { DetailInput::LONG, server_type, placeholder_text }; |
105 DetailInput input = { DetailInput::NONE, server_type, placeholder_text }; | |
106 inputs->push_back(input); | 105 inputs->push_back(input); |
107 } | 106 } |
108 | 107 |
109 } // namespace i18ninput | 108 } // namespace i18ninput |
110 } // namespace autofill | 109 } // namespace autofill |
OLD | NEW |