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

Side by Side 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698