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 if (AutofillType(type).GetStorableType() == ADDRESS_HOME_COUNTRY) { | 267 if (!IsI18nInputEnabled() && |
Evan Stade
2014/01/14 17:19:38
nit: could you make this
// TODO(dbeam): remove t
Dan Beam
2014/01/15 03:10:48
Done.
| |
268 AutofillType(type).GetStorableType() == ADDRESS_HOME_COUNTRY) { | |
268 AutofillCountry country("US", g_browser_process->GetApplicationLocale()); | 269 AutofillCountry country("US", g_browser_process->GetApplicationLocale()); |
269 return country.name(); | 270 return country.name(); |
270 } | 271 } |
271 | 272 |
272 return base::string16(); | 273 return base::string16(); |
273 } | 274 } |
274 | 275 |
275 } // namespace common | 276 } // namespace common |
276 } // namespace autofill | 277 } // namespace autofill |
OLD | NEW |