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

Unified Diff: components/payments/content/android/payment_details_validation_android.cc

Issue 2645813006: Download web payment manifests. (Closed)
Patch Set: Rebase Created 3 years, 9 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/android/payment_details_validation_android.cc
diff --git a/components/payments/content/android/payment_details_validation_android.cc b/components/payments/content/android/payment_details_validation_android.cc
index 072dda083a40024d2a04f52f27816db23a513489..ddc7ffc495139ae102b0a40282ca19f651782cd2 100644
--- a/components/payments/content/android/payment_details_validation_android.cc
+++ b/components/payments/content/android/payment_details_validation_android.cc
@@ -4,9 +4,14 @@
#include "components/payments/content/android/payment_details_validation_android.h"
+#include <stdint.h>
+
+#include <cstring>
#include <string>
#include <utility>
+#include <vector>
+#include "base/android/jni_android.h"
#include "components/payments/content/payment_details_validation.h"
#include "components/payments/content/payment_request.mojom.h"
#include "jni/PaymentValidator_jni.h"
@@ -25,11 +30,11 @@ jboolean ValidatePaymentDetails(
if (!mojom::PaymentDetails::Deserialize(std::move(mojo_buffer), &details))
return false;
std::string unused_error_message;
- return payments::validatePaymentDetails(details, &unused_error_message);
+ return validatePaymentDetails(details, &unused_error_message);
}
-} // namespace payments
-
bool RegisterPaymentValidator(JNIEnv* env) {
- return payments::RegisterNativesImpl(env);
+ return RegisterNativesImpl(env);
}
+
+} // namespace payments

Powered by Google App Engine
This is Rietveld 408576698