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

Side by Side Diff: chrome/browser/android/payments/service_worker_payment_app_bridge.cc

Issue 2718013004: PaymentApp: Implement respondWith() in PaymentRequestEvent. (content side) (Closed)
Patch Set: rebase Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/payments/content/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | components/payments/content/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698