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

Unified Diff: content/browser/service_worker/embedded_worker_test_helper.cc

Issue 2898223002: PaymentHandler: Rename PaymentAppRequest with PaymentRequestEventData. (Closed)
Patch Set: Rename Created 3 years, 7 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: content/browser/service_worker/embedded_worker_test_helper.cc
diff --git a/content/browser/service_worker/embedded_worker_test_helper.cc b/content/browser/service_worker/embedded_worker_test_helper.cc
index d1bb82fe22a51a42bad5f253c0d21b474e83539e..13945c584f19c79d6e29b9c631a9869cb93762d0 100644
--- a/content/browser/service_worker/embedded_worker_test_helper.cc
+++ b/content/browser/service_worker/embedded_worker_test_helper.cc
@@ -255,12 +255,12 @@ class EmbeddedWorkerTestHelper::MockServiceWorkerEventDispatcher
void DispatchPaymentRequestEvent(
int payment_request_id,
- payments::mojom::PaymentAppRequestPtr app_request,
+ payments::mojom::PaymentRequestEventDataPtr event_data,
payments::mojom::PaymentAppResponseCallbackPtr response_callback,
DispatchPaymentRequestEventCallback callback) override {
if (!helper_)
return;
- helper_->OnPaymentRequestEventStub(std::move(app_request),
+ helper_->OnPaymentRequestEventStub(std::move(event_data),
std::move(response_callback),
std::move(callback));
}
@@ -520,7 +520,7 @@ void EmbeddedWorkerTestHelper::OnNotificationCloseEvent(
}
void EmbeddedWorkerTestHelper::OnPaymentRequestEvent(
- payments::mojom::PaymentAppRequestPtr app_request,
+ payments::mojom::PaymentRequestEventDataPtr event_data,
payments::mojom::PaymentAppResponseCallbackPtr response_callback,
mojom::ServiceWorkerEventDispatcher::DispatchPaymentRequestEventCallback
callback) {
@@ -783,14 +783,14 @@ void EmbeddedWorkerTestHelper::OnPushEventStub(
}
void EmbeddedWorkerTestHelper::OnPaymentRequestEventStub(
- payments::mojom::PaymentAppRequestPtr app_request,
+ payments::mojom::PaymentRequestEventDataPtr event_data,
payments::mojom::PaymentAppResponseCallbackPtr response_callback,
mojom::ServiceWorkerEventDispatcher::DispatchPaymentRequestEventCallback
callback) {
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(&EmbeddedWorkerTestHelper::OnPaymentRequestEvent, AsWeakPtr(),
- base::Passed(&app_request), base::Passed(&response_callback),
+ base::Passed(&event_data), base::Passed(&response_callback),
base::Passed(&callback)));
}

Powered by Google App Engine
This is Rietveld 408576698