OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/autofill/core/browser/autofill_credit_card_filling_infobar_
delegate_mobile.h" | 5 #include "components/autofill/core/browser/autofill_credit_card_filling_infobar_
delegate_mobile.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "components/autofill/core/browser/credit_card.h" | 8 #include "components/autofill/core/browser/credit_card.h" |
9 #include "components/autofill/core/common/autofill_constants.h" | 9 #include "components/autofill/core/common/autofill_constants.h" |
| 10 #include "components/grit/components_scaled_resources.h" |
10 #include "components/infobars/core/infobar_delegate.h" | 11 #include "components/infobars/core/infobar_delegate.h" |
11 #include "grit/components_scaled_resources.h" | 12 #include "components/strings/grit/components_strings.h" |
12 #include "grit/components_strings.h" | |
13 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
14 | 14 |
15 namespace autofill { | 15 namespace autofill { |
16 | 16 |
17 AutofillCreditCardFillingInfoBarDelegateMobile:: | 17 AutofillCreditCardFillingInfoBarDelegateMobile:: |
18 AutofillCreditCardFillingInfoBarDelegateMobile( | 18 AutofillCreditCardFillingInfoBarDelegateMobile( |
19 const CreditCard& card, | 19 const CreditCard& card, |
20 const base::Closure& card_filling_callback) | 20 const base::Closure& card_filling_callback) |
21 : ConfirmInfoBarDelegate(), | 21 : ConfirmInfoBarDelegate(), |
22 card_filling_callback_(card_filling_callback), | 22 card_filling_callback_(card_filling_callback), |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 void AutofillCreditCardFillingInfoBarDelegateMobile::LogUserAction( | 92 void AutofillCreditCardFillingInfoBarDelegateMobile::LogUserAction( |
93 AutofillMetrics::InfoBarMetric user_action) { | 93 AutofillMetrics::InfoBarMetric user_action) { |
94 DCHECK(!had_user_interaction_); | 94 DCHECK(!had_user_interaction_); |
95 | 95 |
96 AutofillMetrics::LogCreditCardFillingInfoBarMetric(user_action); | 96 AutofillMetrics::LogCreditCardFillingInfoBarMetric(user_action); |
97 had_user_interaction_ = true; | 97 had_user_interaction_ = true; |
98 } | 98 } |
99 | 99 |
100 } // namespace autofill | 100 } // namespace autofill |
OLD | NEW |