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

Unified Diff: chrome/browser/payments/payment_handler_permission_context.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/payment_handler_permission_context.cc
diff --git a/chrome/browser/payments/payment_handler_permission_context.cc b/chrome/browser/payments/payment_handler_permission_context.cc
new file mode 100644
index 0000000000000000000000000000000000000000..825216537dfd47c44d8f5902aa14b997c902ecc7
--- /dev/null
+++ b/chrome/browser/payments/payment_handler_permission_context.cc
@@ -0,0 +1,24 @@
+// 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/payment_handler_permission_context.h"
+
+#include "components/content_settings/core/common/content_settings_types.h"
+#include "third_party/WebKit/public/platform/WebFeaturePolicyFeature.h"
+
+namespace payments {
+
+PaymentHandlerPermissionContext::PaymentHandlerPermissionContext(
+ Profile* profile)
+ : PermissionContextBase(profile,
+ CONTENT_SETTINGS_TYPE_PAYMENT_HANDLER,
+ blink::WebFeaturePolicyFeature::kNotFound) {}
+
+PaymentHandlerPermissionContext::~PaymentHandlerPermissionContext() {}
+
+bool PaymentHandlerPermissionContext::IsRestrictedToSecureOrigins() const {
+ return true;
+}
+
+} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698