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

Unified Diff: components/payments/content/payment_details_validation.cc

Issue 2713033004: Layered component for web payments (Closed)
Patch Set: Rebase Created 3 years, 10 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: components/payments/content/payment_details_validation.cc
diff --git a/components/payments/payment_details_validation.cc b/components/payments/content/payment_details_validation.cc
similarity index 96%
rename from components/payments/payment_details_validation.cc
rename to components/payments/content/payment_details_validation.cc
index 5fce52febfc8f32b98308cd7a6c3eae4601c19d2..3933c1c3337b9d0ef0239913cd2e8abffd476cee 100644
--- a/components/payments/payment_details_validation.cc
+++ b/components/payments/content/payment_details_validation.cc
@@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/payments/payment_details_validation.h"
+#include "components/payments/content/payment_details_validation.h"
#include <set>
#include <vector>
-#include "components/payments/payment_request.mojom.h"
-#include "components/payments/payments_validators.h"
+#include "components/payments/content/payment_request.mojom.h"
+#include "components/payments/content/payments_validators.h"
+namespace payments {
namespace {
// Validates ShippingOption or PaymentItem, which happen to have identical
@@ -139,8 +140,6 @@ bool validatePaymentDetailsModifiers(
} // namespace
-namespace payments {
-
bool validatePaymentDetails(const mojom::PaymentDetailsPtr& details,
std::string* error_message) {
if (details->total.is_null()) {
« no previous file with comments | « components/payments/content/payment_details_validation.h ('k') | components/payments/content/payment_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698