Chromium Code Reviews| 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/payment_handler_permission_infobar_delegate.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 PaymentHandlerPermissionInfoBarDelegate:: | |
| 12 PaymentHandlerPermissionInfoBarDelegate( | |
| 13 const GURL& requesting_frame, | |
| 14 bool user_gesture, | |
| 15 Profile* profile, | |
| 16 const PermissionSetCallback& callback) | |
| 17 : PermissionInfoBarDelegate(requesting_frame, | |
| 18 CONTENT_SETTINGS_TYPE_PAYMENT_HANDLER, | |
| 19 user_gesture, | |
| 20 profile, | |
| 21 callback) {} | |
| 22 | |
| 23 PaymentHandlerPermissionInfoBarDelegate:: | |
| 24 ~PaymentHandlerPermissionInfoBarDelegate() {} | |
| 25 | |
| 26 infobars::InfoBarDelegate::InfoBarIdentifier | |
| 27 PaymentHandlerPermissionInfoBarDelegate::GetIdentifier() const { | |
| 28 return PAYMENT_HANDLER_INFOBAR_DELEGATE_ANDROID; | |
| 29 } | |
| 30 | |
| 31 int PaymentHandlerPermissionInfoBarDelegate::GetIconId() const { | |
| 32 return IDR_ANDROID_INFOBAR_PAYMENT_HANDLER; | |
|
please use gerrit instead
2017/06/20 13:28:08
This file does not seem to be Android-specific. Do
zino
2017/06/22 17:26:37
This should be Android-specific. I moved this file
| |
| 33 } | |
| 34 | |
| 35 int PaymentHandlerPermissionInfoBarDelegate::GetMessageResourceId() const { | |
| 36 return IDS_PAYMENTS_PAYMENT_HANDLER_REQUEST_PERMISSION; | |
| 37 } | |
| OLD | NEW |