[spc][clank] Update ChromePaymentRequestService with the SPC Controller [chromium/src : main]

1 view
Skip to first unread message

Darwin Yang (Gerrit)

unread,
Jun 10, 2025, 12:31:29 PM6/10/25
to Slobodan Pejic, Chromium Payments Reviews, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, gogerald+pa...@chromium.org, npnavarro+p...@chromium.org, rouslan+...@chromium.org, sloboda...@chromium.org
Attention needed from Slobodan Pejic

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Slobodan Pejic
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3915042190c273cd8c5770b0b98bc594cd3b4de2
Gerrit-Change-Number: 6634230
Gerrit-PatchSet: 1
Gerrit-Owner: Darwin Yang <darwi...@chromium.org>
Gerrit-Reviewer: Darwin Yang <darwi...@chromium.org>
Gerrit-Reviewer: Slobodan Pejic <slob...@chromium.org>
Gerrit-CC: Chromium Payments Reviews <chrome-paym...@google.com>
Gerrit-Attention: Slobodan Pejic <slob...@chromium.org>
Gerrit-Comment-Date: Tue, 10 Jun 2025 16:31:23 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Slobodan Pejic (Gerrit)

unread,
Jun 11, 2025, 9:33:44 AM6/11/25
to Darwin Yang, Chromium Payments Reviews, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, gogerald+pa...@chromium.org, npnavarro+p...@chromium.org, rouslan+...@chromium.org, sloboda...@chromium.org
Attention needed from Darwin Yang

Slobodan Pejic voted and added 4 comments

Votes added by Slobodan Pejic

Code-Review+1

4 comments

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Slobodan Pejic . resolved

LGTM

File chrome/android/java/src/org/chromium/chrome/browser/payments/ChromePaymentRequestService.java
File-level comment, Patchset 1 (Latest):
Slobodan Pejic . resolved

Noting that test coverage for ChromePaymentRequestService's SPC flows are tracked in https://crbug.com/407538847.

Line 122, Patchset 1 (Latest): // mSpcController is null when it is closed and before it is shown.
Slobodan Pejic . unresolved

nit: Add a note above mScpAuthnUiController and mNoMatchingController that they are being replaced by mSpcController.

Line 583, Patchset 1 (Latest): if (mSpcController.show()) {
mJourneyLogger.setShown();
mPaymentRequestService.onUiDisplayed();
return null;
} else {
mSpcController = null;
return ErrorStrings.SPC_AUTHN_UI_SUPPRESSED;
}
Slobodan Pejic . unresolved

Can we share the lines 655-662, instead of duplicating here?

Open in Gerrit

Related details

Attention is currently required from:
  • Darwin Yang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3915042190c273cd8c5770b0b98bc594cd3b4de2
Gerrit-Change-Number: 6634230
Gerrit-PatchSet: 1
Gerrit-Owner: Darwin Yang <darwi...@chromium.org>
Gerrit-Reviewer: Darwin Yang <darwi...@chromium.org>
Gerrit-Reviewer: Slobodan Pejic <slob...@chromium.org>
Gerrit-CC: Chromium Payments Reviews <chrome-paym...@google.com>
Gerrit-Attention: Darwin Yang <darwi...@chromium.org>
Gerrit-Comment-Date: Wed, 11 Jun 2025 13:33:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Darwin Yang (Gerrit)

unread,
Jun 11, 2025, 3:08:49 PM6/11/25
to Slobodan Pejic, Chromium Payments Reviews, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, gogerald+pa...@chromium.org, npnavarro+p...@chromium.org, rouslan+...@chromium.org, sloboda...@chromium.org

Darwin Yang added 2 comments

File chrome/android/java/src/org/chromium/chrome/browser/payments/ChromePaymentRequestService.java
Line 122, Patchset 1: // mSpcController is null when it is closed and before it is shown.
Slobodan Pejic . resolved

nit: Add a note above mScpAuthnUiController and mNoMatchingController that they are being replaced by mSpcController.

Darwin Yang

Done

Line 583, Patchset 1: if (mSpcController.show()) {

mJourneyLogger.setShown();
mPaymentRequestService.onUiDisplayed();
return null;
} else {
mSpcController = null;
return ErrorStrings.SPC_AUTHN_UI_SUPPRESSED;
}
Slobodan Pejic . resolved

Can we share the lines 655-662, instead of duplicating here?

Darwin Yang

Discussed offline. There isn't a simple solution to dedupe the code here due to the different controllers involved in the code.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3915042190c273cd8c5770b0b98bc594cd3b4de2
Gerrit-Change-Number: 6634230
Gerrit-PatchSet: 2
Gerrit-Owner: Darwin Yang <darwi...@chromium.org>
Gerrit-Reviewer: Darwin Yang <darwi...@chromium.org>
Gerrit-Reviewer: Slobodan Pejic <slob...@chromium.org>
Gerrit-CC: Chromium Payments Reviews <chrome-paym...@google.com>
Gerrit-Comment-Date: Wed, 11 Jun 2025 19:08:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Slobodan Pejic <slob...@chromium.org>
satisfied_requirement
open
diffy

Darwin Yang (Gerrit)

unread,
Jun 11, 2025, 3:09:48 PM6/11/25
to Ted Choc, Slobodan Pejic, Chromium Payments Reviews, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, gogerald+pa...@chromium.org, npnavarro+p...@chromium.org, rouslan+...@chromium.org, sloboda...@chromium.org
Attention needed from Ted Choc

Darwin Yang added 1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Darwin Yang . resolved

Hi @ted...@chromium.org I'm adding you for an OWNERS review on `content_feature_map.cc`.

Open in Gerrit

Related details

Attention is currently required from:
  • Ted Choc
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3915042190c273cd8c5770b0b98bc594cd3b4de2
Gerrit-Change-Number: 6634230
Gerrit-PatchSet: 2
Gerrit-Owner: Darwin Yang <darwi...@chromium.org>
Gerrit-Reviewer: Darwin Yang <darwi...@chromium.org>
Gerrit-Reviewer: Slobodan Pejic <slob...@chromium.org>
Gerrit-Reviewer: Ted Choc <ted...@chromium.org>
Gerrit-CC: Chromium Payments Reviews <chrome-paym...@google.com>
Gerrit-Attention: Ted Choc <ted...@chromium.org>
Gerrit-Comment-Date: Wed, 11 Jun 2025 19:09:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
open
diffy

Ted Choc (Gerrit)

unread,
Jun 11, 2025, 5:40:58 PM6/11/25
to Darwin Yang, Slobodan Pejic, Chromium Payments Reviews, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, gogerald+pa...@chromium.org, npnavarro+p...@chromium.org, rouslan+...@chromium.org, sloboda...@chromium.org
Attention needed from Darwin Yang

Ted Choc voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Darwin Yang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3915042190c273cd8c5770b0b98bc594cd3b4de2
Gerrit-Change-Number: 6634230
Gerrit-PatchSet: 2
Gerrit-Owner: Darwin Yang <darwi...@chromium.org>
Gerrit-Reviewer: Darwin Yang <darwi...@chromium.org>
Gerrit-Reviewer: Slobodan Pejic <slob...@chromium.org>
Gerrit-Reviewer: Ted Choc <ted...@chromium.org>
Gerrit-CC: Chromium Payments Reviews <chrome-paym...@google.com>
Gerrit-Attention: Darwin Yang <darwi...@chromium.org>
Gerrit-Comment-Date: Wed, 11 Jun 2025 21:40:48 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Darwin Yang (Gerrit)

unread,
Jun 12, 2025, 9:17:43 AM6/12/25
to Ted Choc, Slobodan Pejic, Chromium Payments Reviews, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, gogerald+pa...@chromium.org, npnavarro+p...@chromium.org, rouslan+...@chromium.org, sloboda...@chromium.org

Darwin Yang voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3915042190c273cd8c5770b0b98bc594cd3b4de2
Gerrit-Change-Number: 6634230
Gerrit-PatchSet: 2
Gerrit-Owner: Darwin Yang <darwi...@chromium.org>
Gerrit-Reviewer: Darwin Yang <darwi...@chromium.org>
Gerrit-Reviewer: Slobodan Pejic <slob...@chromium.org>
Gerrit-Reviewer: Ted Choc <ted...@chromium.org>
Gerrit-CC: Chromium Payments Reviews <chrome-paym...@google.com>
Gerrit-Comment-Date: Thu, 12 Jun 2025 13:17:32 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Jun 12, 2025, 9:22:56 AM6/12/25
to Darwin Yang, Ted Choc, Slobodan Pejic, Chromium Payments Reviews, AyeAye, chromium...@chromium.org, gogerald+pa...@chromium.org, npnavarro+p...@chromium.org, rouslan+...@chromium.org, sloboda...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
[spc][clank] Update ChromePaymentRequestService with the SPC Controller

Use the new SPC Controller in ChromePaymentRequestService if the
SecurePaymentConfirmationUxRefresh flag is on.

Replace usages of `assert != null` with `assertNonNull()` in
ChromePaymentRequestService.
Bug: 416516524
Change-Id: I3915042190c273cd8c5770b0b98bc594cd3b4de2
Reviewed-by: Ted Choc <ted...@chromium.org>
Reviewed-by: Slobodan Pejic <slob...@chromium.org>
Commit-Queue: Darwin Yang <darwi...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1473002}
Files:
  • M chrome/android/BUILD.gn
  • M chrome/android/java/src/org/chromium/chrome/browser/payments/ChromePaymentRequestService.java
  • M components/payments/content/android/spc/java/src/org/chromium/components/payments/secure_payment_confirmation/SecurePaymentConfirmationController.java
  • M content/browser/android/content_feature_map.cc
Change size: M
Delta: 4 files changed, 173 insertions(+), 30 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Ted Choc, +1 by Slobodan Pejic
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3915042190c273cd8c5770b0b98bc594cd3b4de2
Gerrit-Change-Number: 6634230
Gerrit-PatchSet: 3
Gerrit-Owner: Darwin Yang <darwi...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Darwin Yang <darwi...@chromium.org>
Gerrit-Reviewer: Slobodan Pejic <slob...@chromium.org>
Gerrit-Reviewer: Ted Choc <ted...@chromium.org>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages