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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 257 |
258 case SECTION_CC: | 258 case SECTION_CC: |
259 return AutofillMetrics::DIALOG_UI_CC_SELECTED_SUGGESTION_CHANGED; | 259 return AutofillMetrics::DIALOG_UI_CC_SELECTED_SUGGESTION_CHANGED; |
260 } | 260 } |
261 | 261 |
262 NOTREACHED(); | 262 NOTREACHED(); |
263 return AutofillMetrics::NUM_DIALOG_UI_EVENTS; | 263 return AutofillMetrics::NUM_DIALOG_UI_EVENTS; |
264 } | 264 } |
265 | 265 |
266 base::string16 GetHardcodedValueForType(ServerFieldType type) { | 266 base::string16 GetHardcodedValueForType(ServerFieldType type) { |
| 267 // TODO(dbeam): remove this entire function when i18n inputs are the default. |
| 268 if (IsI18nInputEnabled()) |
| 269 return base::string16(); |
| 270 |
267 if (AutofillType(type).GetStorableType() == ADDRESS_HOME_COUNTRY) { | 271 if (AutofillType(type).GetStorableType() == ADDRESS_HOME_COUNTRY) { |
268 AutofillCountry country("US", g_browser_process->GetApplicationLocale()); | 272 AutofillCountry country("US", g_browser_process->GetApplicationLocale()); |
269 return country.name(); | 273 return country.name(); |
270 } | 274 } |
271 | 275 |
272 return base::string16(); | 276 return base::string16(); |
273 } | 277 } |
274 | 278 |
275 } // namespace common | 279 } // namespace common |
276 } // namespace autofill | 280 } // namespace autofill |
OLD | NEW |