| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_models.h" | 5 #include "chrome/browser/ui/autofill/autofill_dialog_models.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 14 #include "chrome/grit/generated_resources.h" |
| 14 #include "components/autofill/core/browser/autofill_country.h" | 15 #include "components/autofill/core/browser/autofill_country.h" |
| 15 #include "grit/generated_resources.h" | |
| 16 #include "grit/theme_resources.h" | 16 #include "grit/theme_resources.h" |
| 17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 18 | 18 |
| 19 namespace autofill { | 19 namespace autofill { |
| 20 | 20 |
| 21 SuggestionsMenuModelDelegate::~SuggestionsMenuModelDelegate() {} | 21 SuggestionsMenuModelDelegate::~SuggestionsMenuModelDelegate() {} |
| 22 | 22 |
| 23 // SuggestionsMenuModel ---------------------------------------------------- | 23 // SuggestionsMenuModel ---------------------------------------------------- |
| 24 | 24 |
| 25 SuggestionsMenuModel::SuggestionsMenuModel( | 25 SuggestionsMenuModel::SuggestionsMenuModel( |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 base::string16 YearComboboxModel::GetItemAt(int index) { | 173 base::string16 YearComboboxModel::GetItemAt(int index) { |
| 174 if (index == 0) { | 174 if (index == 0) { |
| 175 return l10n_util::GetStringUTF16( | 175 return l10n_util::GetStringUTF16( |
| 176 IDS_AUTOFILL_DIALOG_PLACEHOLDER_EXPIRY_YEAR); | 176 IDS_AUTOFILL_DIALOG_PLACEHOLDER_EXPIRY_YEAR); |
| 177 } | 177 } |
| 178 | 178 |
| 179 return base::IntToString16(this_year_ + index - 1); | 179 return base::IntToString16(this_year_ + index - 1); |
| 180 } | 180 } |
| 181 | 181 |
| 182 } // namespace autofill | 182 } // namespace autofill |
| OLD | NEW |