OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/payments/android/payment_handler_permission_infobar_del
egate_android.h" |
| 6 |
| 7 #include "chrome/browser/android/android_theme_resources.h" |
| 8 #include "chrome/grit/generated_resources.h" |
| 9 #include "components/strings/grit/components_strings.h" |
| 10 |
| 11 namespace payments { |
| 12 |
| 13 PaymentHandlerPermissionInfoBarDelegateAndroid:: |
| 14 PaymentHandlerPermissionInfoBarDelegateAndroid( |
| 15 const GURL& requesting_frame, |
| 16 bool user_gesture, |
| 17 Profile* profile, |
| 18 const PermissionSetCallback& callback) |
| 19 : PermissionInfoBarDelegate(requesting_frame, |
| 20 CONTENT_SETTINGS_TYPE_PAYMENT_HANDLER, |
| 21 user_gesture, |
| 22 profile, |
| 23 callback) {} |
| 24 |
| 25 PaymentHandlerPermissionInfoBarDelegateAndroid:: |
| 26 ~PaymentHandlerPermissionInfoBarDelegateAndroid() {} |
| 27 |
| 28 infobars::InfoBarDelegate::InfoBarIdentifier |
| 29 PaymentHandlerPermissionInfoBarDelegateAndroid::GetIdentifier() const { |
| 30 return PAYMENT_HANDLER_INFOBAR_DELEGATE_ANDROID; |
| 31 } |
| 32 |
| 33 int PaymentHandlerPermissionInfoBarDelegateAndroid::GetIconId() const { |
| 34 return IDR_ANDROID_INFOBAR_PAYMENT_HANDLER; |
| 35 } |
| 36 |
| 37 int PaymentHandlerPermissionInfoBarDelegateAndroid::GetMessageResourceId() |
| 38 const { |
| 39 return IDS_PAYMENTS_PAYMENT_HANDLER_REQUEST_PERMISSION; |
| 40 } |
| 41 |
| 42 } // namespace payments |
OLD | NEW |