Commit 3c7df6c4 authored by Liquan (Max) Gu's avatar Liquan (Max) Gu Committed by Commit Bot

payment cleanup: rename ComponentPaymentRequest PaymentRequestService

Bug: 1137006

Change-Id: Ib1401949fe60d0c3b6b459bdd8507bea983c40c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2485641Reviewed-by: default avatarSahel Sharify <sahel@chromium.org>
Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#819012}
parent 9e47a7e5
...@@ -211,7 +211,7 @@ public class ChromePaymentRequestFactory implements InterfaceFactory<PaymentRequ ...@@ -211,7 +211,7 @@ public class ChromePaymentRequestFactory implements InterfaceFactory<PaymentRequ
return PaymentRequestService.createPaymentRequest(mRenderFrameHost, return PaymentRequestService.createPaymentRequest(mRenderFrameHost,
/*isOffTheRecord=*/delegate.isOffTheRecord(), /*isOffTheRecord=*/delegate.isOffTheRecord(),
/*skipUiForBasicCard=*/delegate.skipUiForBasicCard(), delegate, /*skipUiForBasicCard=*/delegate.skipUiForBasicCard(), delegate,
(componentPaymentRequest) (paymentRequestService)
-> new ChromePaymentRequestService(componentPaymentRequest, delegate)); -> new ChromePaymentRequestService(paymentRequestService, delegate));
} }
} }
...@@ -145,7 +145,7 @@ public class PaymentRequestTestRule extends ChromeTabbedActivityTestRule ...@@ -145,7 +145,7 @@ public class PaymentRequestTestRule extends ChromeTabbedActivityTestRule
final CallbackHelper mPaymentResponseReady; final CallbackHelper mPaymentResponseReady;
final CallbackHelper mCompleteReplied; final CallbackHelper mCompleteReplied;
final CallbackHelper mRendererClosedMojoConnection; final CallbackHelper mRendererClosedMojoConnection;
PaymentRequestService mComponentPaymentRequest; PaymentRequestService mPaymentRequestService;
PaymentRequestUI mUI; PaymentRequestUI mUI;
private final boolean mDelayStartActivity; private final boolean mDelayStartActivity;
...@@ -1001,7 +1001,7 @@ public class PaymentRequestTestRule extends ChromeTabbedActivityTestRule ...@@ -1001,7 +1001,7 @@ public class PaymentRequestTestRule extends ChromeTabbedActivityTestRule
/** Allows to skip UI into paymenthandler for"basic-card". */ /** Allows to skip UI into paymenthandler for"basic-card". */
protected void enableSkipUIForBasicCard() { protected void enableSkipUIForBasicCard() {
ThreadUtils.runOnUiThreadBlocking( ThreadUtils.runOnUiThreadBlocking(
() -> mComponentPaymentRequest.setSkipUiForNonUrlPaymentMethodIdentifiersForTest()); () -> mPaymentRequestService.setSkipUiForNonUrlPaymentMethodIdentifiersForTest());
} }
@Override @Override
...@@ -1059,9 +1059,9 @@ public class PaymentRequestTestRule extends ChromeTabbedActivityTestRule ...@@ -1059,9 +1059,9 @@ public class PaymentRequestTestRule extends ChromeTabbedActivityTestRule
} }
@Override @Override
public void onPaymentRequestCreated(PaymentRequestService paymentRequest) { public void onPaymentRequestCreated(PaymentRequestService paymentRequestService) {
ThreadUtils.assertOnUiThread(); ThreadUtils.assertOnUiThread();
mComponentPaymentRequest = paymentRequest; mPaymentRequestService = paymentRequestService;
} }
@Override @Override
......
...@@ -147,9 +147,9 @@ public class PaymentRequestService { ...@@ -147,9 +147,9 @@ public class PaymentRequestService {
/** /**
* Called after an instance of {@link PaymentRequestService} has been created. * Called after an instance of {@link PaymentRequestService} has been created.
* *
* @param componentPaymentRequest The newly created instance of PaymentRequestService. * @param paymentRequestService The newly created instance of PaymentRequestService.
*/ */
void onPaymentRequestCreated(PaymentRequestService componentPaymentRequest); void onPaymentRequestCreated(PaymentRequestService paymentRequestService);
/** /**
* Called when an abort request was denied. * Called when an abort request was denied.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment