Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_models.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
9 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
11 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
12 #include "base/time/time.h" 11 #include "base/time/time.h"
13 #include "chrome/grit/generated_resources.h" 12 #include "chrome/grit/generated_resources.h"
14 #include "components/autofill/core/browser/autofill_country.h" 13 #include "components/autofill/core/browser/autofill_country.h"
14 #include "components/prefs/pref_service.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 16
17 namespace autofill { 17 namespace autofill {
18 18
19 SuggestionsMenuModelDelegate::~SuggestionsMenuModelDelegate() {} 19 SuggestionsMenuModelDelegate::~SuggestionsMenuModelDelegate() {}
20 20
21 // SuggestionsMenuModel ---------------------------------------------------- 21 // SuggestionsMenuModel ----------------------------------------------------
22 22
23 SuggestionsMenuModel::SuggestionsMenuModel( 23 SuggestionsMenuModel::SuggestionsMenuModel(
24 SuggestionsMenuModelDelegate* delegate) 24 SuggestionsMenuModelDelegate* delegate)
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 base::string16 YearComboboxModel::GetItemAt(int index) { 171 base::string16 YearComboboxModel::GetItemAt(int index) {
172 if (index == 0) { 172 if (index == 0) {
173 return l10n_util::GetStringUTF16( 173 return l10n_util::GetStringUTF16(
174 IDS_AUTOFILL_DIALOG_PLACEHOLDER_EXPIRY_YEAR); 174 IDS_AUTOFILL_DIALOG_PLACEHOLDER_EXPIRY_YEAR);
175 } 175 }
176 176
177 return base::IntToString16(this_year_ + index - 1); 177 return base::IntToString16(this_year_ + index - 1);
178 } 178 }
179 179
180 } // namespace autofill 180 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698