Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2989)

Unified Diff: chrome/browser/payments/android/payment_handler_permission_infobar_delegate_android.cc

Issue 2946013002: PaymentHandler: Implement requestPermission().
Patch Set: PaymentHandler: Implement requestPermission(). Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/payments/android/payment_handler_permission_infobar_delegate_android.cc
diff --git a/chrome/browser/payments/android/payment_handler_permission_infobar_delegate_android.cc b/chrome/browser/payments/android/payment_handler_permission_infobar_delegate_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..416d5a2b9ead17f3f71da6b97771b0b2adba1a95
--- /dev/null
+++ b/chrome/browser/payments/android/payment_handler_permission_infobar_delegate_android.cc
@@ -0,0 +1,42 @@
+// 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/android/payment_handler_permission_infobar_delegate_android.h"
+
+#include "chrome/browser/android/android_theme_resources.h"
+#include "chrome/grit/generated_resources.h"
+#include "components/strings/grit/components_strings.h"
+
+namespace payments {
+
+PaymentHandlerPermissionInfoBarDelegateAndroid::
+ PaymentHandlerPermissionInfoBarDelegateAndroid(
+ const GURL& requesting_frame,
+ bool user_gesture,
+ Profile* profile,
+ const PermissionSetCallback& callback)
+ : PermissionInfoBarDelegate(requesting_frame,
+ CONTENT_SETTINGS_TYPE_PAYMENT_HANDLER,
+ user_gesture,
+ profile,
+ callback) {}
+
+PaymentHandlerPermissionInfoBarDelegateAndroid::
+ ~PaymentHandlerPermissionInfoBarDelegateAndroid() {}
+
+infobars::InfoBarDelegate::InfoBarIdentifier
+PaymentHandlerPermissionInfoBarDelegateAndroid::GetIdentifier() const {
+ return PAYMENT_HANDLER_INFOBAR_DELEGATE_ANDROID;
+}
+
+int PaymentHandlerPermissionInfoBarDelegateAndroid::GetIconId() const {
+ return IDR_ANDROID_INFOBAR_PAYMENT_HANDLER;
+}
+
+int PaymentHandlerPermissionInfoBarDelegateAndroid::GetMessageResourceId()
+ const {
+ return IDS_PAYMENTS_PAYMENT_HANDLER_REQUEST_PERMISSION;
+}
+
+} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698