OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/payments/android/payments_jni_registrar.h" | 5 #include "components/payments/android/payment_validator_android.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "components/payments/payment_details_validation.h" | 10 #include "components/payments/payment_details_validation.h" |
11 #include "components/payments/payment_request.mojom.h" | 11 #include "components/payments/payment_request.mojom.h" |
12 #include "jni/PaymentValidator_jni.h" | 12 #include "jni/PaymentValidator_jni.h" |
13 | 13 |
14 namespace payments { | 14 namespace payments { |
15 | 15 |
(...skipping 10 matching lines...) Expand all Loading... |
26 return false; | 26 return false; |
27 std::string unused_error_message; | 27 std::string unused_error_message; |
28 return payments::validatePaymentDetails(details, &unused_error_message); | 28 return payments::validatePaymentDetails(details, &unused_error_message); |
29 } | 29 } |
30 | 30 |
31 } // namespace payments | 31 } // namespace payments |
32 | 32 |
33 bool RegisterPaymentValidator(JNIEnv* env) { | 33 bool RegisterPaymentValidator(JNIEnv* env) { |
34 return payments::RegisterNativesImpl(env); | 34 return payments::RegisterNativesImpl(env); |
35 } | 35 } |
OLD | NEW |