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

Unified Diff: content/browser/permissions/permission_service_impl.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
« no previous file with comments | « components/payments_strings.grdp ('k') | content/public/browser/permission_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/permissions/permission_service_impl.cc
diff --git a/content/browser/permissions/permission_service_impl.cc b/content/browser/permissions/permission_service_impl.cc
index b223db0ce962f2e61dd561f06cdecbf0a2c834f4..1ad54062ca0592a95994c8b0df70f3acb86d1695 100644
--- a/content/browser/permissions/permission_service_impl.cc
+++ b/content/browser/permissions/permission_service_impl.cc
@@ -54,6 +54,8 @@ PermissionType PermissionDescriptorToPermissionType(
return PermissionType::VIDEO_CAPTURE;
case PermissionName::BACKGROUND_SYNC:
return PermissionType::BACKGROUND_SYNC;
+ case PermissionName::PAYMENT_HANDLER:
+ return PermissionType::PAYMENT_HANDLER;
}
NOTREACHED();
@@ -78,6 +80,7 @@ blink::WebFeaturePolicyFeature PermissionTypeToFeaturePolicyFeature(
case PermissionType::NOTIFICATIONS:
case PermissionType::DURABLE_STORAGE:
case PermissionType::BACKGROUND_SYNC:
+ case PermissionType::PAYMENT_HANDLER:
case PermissionType::FLASH:
case PermissionType::NUM:
// These aren't exposed by feature policy.
« no previous file with comments | « components/payments_strings.grdp ('k') | content/public/browser/permission_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698