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

Unified Diff: chrome/browser/permissions/permission_request_impl.cc

Issue 2946013002: PaymentHandler: Implement requestPermission().
Patch Set: 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/permissions/permission_request_impl.cc
diff --git a/chrome/browser/permissions/permission_request_impl.cc b/chrome/browser/permissions/permission_request_impl.cc
index 11276f7834261bf48f0f2dac20e53ea8971608e8..ca4757f20dafa597bcc71108f60db5446df354ba 100644
--- a/chrome/browser/permissions/permission_request_impl.cc
+++ b/chrome/browser/permissions/permission_request_impl.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/permissions/permission_util.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/theme_resources.h"
+#include "components/strings/grit/components_strings.h"
#include "components/url_formatter/elide_url.h"
#include "net/base/escape.h"
#include "ui/base/l10n/l10n_util.h"
@@ -93,6 +94,8 @@ PermissionRequest::IconId PermissionRequestImpl::GetIconId() const {
return ui::kMicrophoneIcon;
case CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA:
return ui::kVideocamIcon;
+ case CONTENT_SETTINGS_TYPE_PAYMENT_HANDLER:
+ return kProductIcon;
default:
NOTREACHED();
return kExtensionIcon;
@@ -161,6 +164,9 @@ base::string16 PermissionRequestImpl::GetMessageTextFragment() const {
case CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA:
message_id = IDS_MEDIA_CAPTURE_VIDEO_ONLY_PERMISSION_FRAGMENT;
break;
+ case CONTENT_SETTINGS_TYPE_PAYMENT_HANDLER:
+ message_id = IDS_PAYMENTS_PAYMENT_HANDLER_REQUEST_PERMISSION;
+ break;
default:
NOTREACHED();
return base::string16();

Powered by Google App Engine
This is Rietveld 408576698