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

Unified Diff: content/browser/permissions/permission_service_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: 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 686bb31b76543a9297021711b8524a51d9cc71f4..f06900d3626e0e130535429ddae25a91ae72f2b5 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.

Powered by Google App Engine
This is Rietveld 408576698