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/account_chooser_model.h" | 5 #include "chrome/browser/ui/autofill/account_chooser_model.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.h" | 12 #include "base/time.h" |
13 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
14 #include "components/autofill/browser/autofill_metrics.h" | 14 #include "components/autofill/core/browser/autofill_metrics.h" |
15 #include "grit/generated_resources.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 #include "ui/base/resource/resource_bundle.h" | 18 #include "ui/base/resource/resource_bundle.h" |
19 | 19 |
20 namespace autofill { | 20 namespace autofill { |
21 | 21 |
22 const int AccountChooserModel::kActiveWalletItemId = 0; | 22 const int AccountChooserModel::kActiveWalletItemId = 0; |
23 const int AccountChooserModel::kAutofillItemId = 1; | 23 const int AccountChooserModel::kAutofillItemId = 1; |
24 | 24 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // A throbber should be shown until the Wallet account name is set. | 147 // A throbber should be shown until the Wallet account name is set. |
148 AddCheckItem(kActiveWalletItemId, | 148 AddCheckItem(kActiveWalletItemId, |
149 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_GOOGLE_WALLET)); | 149 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_GOOGLE_WALLET)); |
150 } | 150 } |
151 | 151 |
152 AddCheckItemWithStringId(kAutofillItemId, | 152 AddCheckItemWithStringId(kAutofillItemId, |
153 IDS_AUTOFILL_DIALOG_PAY_WITHOUT_WALLET); | 153 IDS_AUTOFILL_DIALOG_PAY_WITHOUT_WALLET); |
154 } | 154 } |
155 | 155 |
156 } // namespace autofill | 156 } // namespace autofill |
OLD | NEW |