Chromium Code Reviews| Index: chrome/browser/payments/payment_handler_permission_infobar_delegate.cc |
| diff --git a/chrome/browser/payments/payment_handler_permission_infobar_delegate.cc b/chrome/browser/payments/payment_handler_permission_infobar_delegate.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b5648fd161157024d4b9064f24225eedc1415bc3 |
| --- /dev/null |
| +++ b/chrome/browser/payments/payment_handler_permission_infobar_delegate.cc |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/browser/payments/payment_handler_permission_infobar_delegate.h" |
| + |
| +#include "chrome/browser/android/android_theme_resources.h" |
| +#include "chrome/grit/generated_resources.h" |
| +#include "components/strings/grit/components_strings.h" |
| + |
| +PaymentHandlerPermissionInfoBarDelegate:: |
| + PaymentHandlerPermissionInfoBarDelegate( |
| + const GURL& requesting_frame, |
| + bool user_gesture, |
| + Profile* profile, |
| + const PermissionSetCallback& callback) |
| + : PermissionInfoBarDelegate(requesting_frame, |
| + CONTENT_SETTINGS_TYPE_PAYMENT_HANDLER, |
| + user_gesture, |
| + profile, |
| + callback) {} |
| + |
| +PaymentHandlerPermissionInfoBarDelegate:: |
| + ~PaymentHandlerPermissionInfoBarDelegate() {} |
| + |
| +infobars::InfoBarDelegate::InfoBarIdentifier |
| +PaymentHandlerPermissionInfoBarDelegate::GetIdentifier() const { |
| + return PAYMENT_HANDLER_INFOBAR_DELEGATE_ANDROID; |
| +} |
| + |
| +int PaymentHandlerPermissionInfoBarDelegate::GetIconId() const { |
| + 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
|
| +} |
| + |
| +int PaymentHandlerPermissionInfoBarDelegate::GetMessageResourceId() const { |
| + return IDS_PAYMENTS_PAYMENT_HANDLER_REQUEST_PERMISSION; |
| +} |