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

Unified Diff: components/payments/payment_details_validation.cc

Issue 2489943003: Revert of [Web Payments] Mojom namespace blink -> payments (Closed)
Patch Set: Created 4 years, 1 month 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/payment_details_validation.h ('k') | components/payments/payment_request.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/payments/payment_details_validation.cc
diff --git a/components/payments/payment_details_validation.cc b/components/payments/payment_details_validation.cc
index 08a6fa3dd433f0f8cf3ccb78bc56df90c0f05414..a346aaceba6cb9c8160b98e68e48fd67d5b79e19 100644
--- a/components/payments/payment_details_validation.cc
+++ b/components/payments/payment_details_validation.cc
@@ -17,7 +17,7 @@
template <typename T>
bool validateShippingOptionOrPaymentItem(
const T& item,
- const payments::mojom::PaymentItemPtr& total,
+ const blink::mojom::PaymentItemPtr& total,
std::string* error_message) {
if (item->label.empty()) {
*error_message = "Item label required";
@@ -66,8 +66,8 @@
}
bool validateDisplayItems(
- const std::vector<payments::mojom::PaymentItemPtr>& items,
- const payments::mojom::PaymentItemPtr& total,
+ const std::vector<blink::mojom::PaymentItemPtr>& items,
+ const blink::mojom::PaymentItemPtr& total,
std::string* error_message) {
for (const auto& item : items) {
if (!validateShippingOptionOrPaymentItem(item, total, error_message))
@@ -77,8 +77,8 @@
}
bool validateShippingOptions(
- const std::vector<payments::mojom::PaymentShippingOptionPtr>& options,
- const payments::mojom::PaymentItemPtr& total,
+ const std::vector<blink::mojom::PaymentShippingOptionPtr>& options,
+ const blink::mojom::PaymentItemPtr& total,
std::string* error_message) {
std::set<std::string> uniqueIds;
for (const auto& option : options) {
@@ -100,8 +100,8 @@
}
bool validatePaymentDetailsModifiers(
- const std::vector<payments::mojom::PaymentDetailsModifierPtr>& modifiers,
- const payments::mojom::PaymentItemPtr& total,
+ const std::vector<blink::mojom::PaymentDetailsModifierPtr>& modifiers,
+ const blink::mojom::PaymentItemPtr& total,
std::string* error_message) {
if (modifiers.empty()) {
*error_message = "Must specify at least one payment details modifier";
@@ -148,7 +148,7 @@
namespace payments {
-bool validatePaymentDetails(const mojom::PaymentDetailsPtr& details,
+bool validatePaymentDetails(const blink::mojom::PaymentDetailsPtr& details,
std::string* error_message) {
if (details->total.is_null()) {
*error_message = "Must specify total";
« no previous file with comments | « components/payments/payment_details_validation.h ('k') | components/payments/payment_request.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698