| 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 "chrome/browser/android/payments/service_worker_payment_app_bridge.h" | 5 #include "chrome/browser/android/payments/service_worker_payment_app_bridge.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/android/jni_array.h" | 9 #include "base/android/jni_array.h" |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 modifier->method_data->stringified_data = ConvertJavaStringToUTF8( | 162 modifier->method_data->stringified_data = ConvertJavaStringToUTF8( |
| 163 env, | 163 env, |
| 164 Java_ServiceWorkerPaymentAppBridge_getStringifiedDataFromMethodData( | 164 Java_ServiceWorkerPaymentAppBridge_getStringifiedDataFromMethodData( |
| 165 env, jmodifier_method_data)); | 165 env, jmodifier_method_data)); |
| 166 | 166 |
| 167 app_request->modifiers.push_back(std::move(modifier)); | 167 app_request->modifiers.push_back(std::move(modifier)); |
| 168 } | 168 } |
| 169 | 169 |
| 170 content::PaymentAppProvider::GetInstance()->InvokePaymentApp( | 170 content::PaymentAppProvider::GetInstance()->InvokePaymentApp( |
| 171 web_contents->GetBrowserContext(), registration_id, | 171 web_contents->GetBrowserContext(), registration_id, |
| 172 std::move(app_request)); | 172 std::move(app_request), |
| 173 content::PaymentAppProvider::InvokePaymentAppCallback()); |
| 173 } | 174 } |
| 174 | 175 |
| 175 bool RegisterServiceWorkerPaymentAppBridge(JNIEnv* env) { | 176 bool RegisterServiceWorkerPaymentAppBridge(JNIEnv* env) { |
| 176 return RegisterNativesImpl(env); | 177 return RegisterNativesImpl(env); |
| 177 } | 178 } |
| OLD | NEW |