[Pix Iframe] Log iframe transaction results [chromium/src : main]

0 views
Skip to first unread message

Longsheng Yin (Gerrit)

unread,
Feb 6, 2026, 6:15:54 PMFeb 6
to Siddharth Shah, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
Attention needed from Siddharth Shah

Longsheng Yin added 1 comment

Patchset-level comments
File-level comment, Patchset 8 (Latest):
Longsheng Yin . resolved

Hi Sid, PTAL

Open in Gerrit

Related details

Attention is currently required from:
  • Siddharth Shah
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
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: I8deb8d256793d22bac3edebc8131364fdcb3d2b3
Gerrit-Change-Number: 7551211
Gerrit-PatchSet: 8
Gerrit-Owner: Longsheng Yin <long...@google.com>
Gerrit-Reviewer: Longsheng Yin <long...@google.com>
Gerrit-Reviewer: Siddharth Shah <sia...@google.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Siddharth Shah <sia...@google.com>
Gerrit-Comment-Date: Fri, 06 Feb 2026 23:15:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Siddharth Shah (Gerrit)

unread,
Feb 6, 2026, 6:23:11 PMFeb 6
to Longsheng Yin, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
Attention needed from Longsheng Yin

Siddharth Shah added 1 comment

File tools/metrics/histograms/metadata/facilitated_payments/histograms.xml
Line 633, Patchset 8 (Latest): name="FacilitatedPayments.Pix.Transaction.{Result}.Latency.{FrameType}"
Siddharth Shah . unresolved

I'd prefer to instead create a new histogram tp avoid the packing too much information in one histogram. FacilitatedPayments.Pix.{FrameType}.TransactionResult This could have the result specified as success/failure.

In addition, I think we also need to create a new PixCodeCopied.Iframe histogram to count the total number of times, we detect the code in iframes. WDYT?

Open in Gerrit

Related details

Attention is currently required from:
  • Longsheng Yin
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    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: I8deb8d256793d22bac3edebc8131364fdcb3d2b3
    Gerrit-Change-Number: 7551211
    Gerrit-PatchSet: 8
    Gerrit-Owner: Longsheng Yin <long...@google.com>
    Gerrit-Reviewer: Longsheng Yin <long...@google.com>
    Gerrit-Reviewer: Siddharth Shah <sia...@google.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Longsheng Yin <long...@google.com>
    Gerrit-Comment-Date: Fri, 06 Feb 2026 23:22:54 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Longsheng Yin (Gerrit)

    unread,
    Feb 6, 2026, 7:03:08 PMFeb 6
    to Siddharth Shah, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
    Attention needed from Siddharth Shah

    Longsheng Yin added 1 comment

    File tools/metrics/histograms/metadata/facilitated_payments/histograms.xml
    Line 633, Patchset 8 (Latest): name="FacilitatedPayments.Pix.Transaction.{Result}.Latency.{FrameType}"
    Siddharth Shah . resolved

    I'd prefer to instead create a new histogram tp avoid the packing too much information in one histogram. FacilitatedPayments.Pix.{FrameType}.TransactionResult This could have the result specified as success/failure.

    In addition, I think we also need to create a new PixCodeCopied.Iframe histogram to count the total number of times, we detect the code in iframes. WDYT?

    Longsheng Yin

    Sounds good, let me update histograms.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Siddharth Shah
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      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: I8deb8d256793d22bac3edebc8131364fdcb3d2b3
      Gerrit-Change-Number: 7551211
      Gerrit-PatchSet: 8
      Gerrit-Owner: Longsheng Yin <long...@google.com>
      Gerrit-Reviewer: Longsheng Yin <long...@google.com>
      Gerrit-Reviewer: Siddharth Shah <sia...@google.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: Siddharth Shah <sia...@google.com>
      Gerrit-Comment-Date: Sat, 07 Feb 2026 00:03:00 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Siddharth Shah <sia...@google.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Longsheng Yin (Gerrit)

      unread,
      Feb 9, 2026, 7:15:19 PMFeb 9
      to Siddharth Shah, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
      Attention needed from Siddharth Shah

      Longsheng Yin added 1 comment

      File tools/metrics/histograms/metadata/facilitated_payments/histograms.xml
      Line 633, Patchset 8: name="FacilitatedPayments.Pix.Transaction.{Result}.Latency.{FrameType}"
      Siddharth Shah . resolved

      I'd prefer to instead create a new histogram tp avoid the packing too much information in one histogram. FacilitatedPayments.Pix.{FrameType}.TransactionResult This could have the result specified as success/failure.

      In addition, I think we also need to create a new PixCodeCopied.Iframe histogram to count the total number of times, we detect the code in iframes. WDYT?

      Longsheng Yin

      Sounds good, let me update histograms.

      Longsheng Yin
      @sia...@google.com once iframe flag is enabled, FacilitatedPayments.Pix.InitiatePurchaseAction and FacilitatedPayments.Pix.Transaction will have data from both main frame and iframe without knowing the frame types, do we expect this? or do you think we can rename the logging methods and only log when the frame type is check, like:
      ```
      if (is_iframe_) {
      LogPixTransactionResultAndLatencyForIframe(){..}
      } else {
      LogPixTransactionResultAndLatencyForMainFrame(){..}
      }

      ```

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Siddharth Shah
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      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: I8deb8d256793d22bac3edebc8131364fdcb3d2b3
      Gerrit-Change-Number: 7551211
      Gerrit-PatchSet: 9
      Gerrit-Owner: Longsheng Yin <long...@google.com>
      Gerrit-Reviewer: Longsheng Yin <long...@google.com>
      Gerrit-Reviewer: Siddharth Shah <sia...@google.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: Siddharth Shah <sia...@google.com>
      Gerrit-Comment-Date: Tue, 10 Feb 2026 00:15:11 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Siddharth Shah <sia...@google.com>
      Comment-In-Reply-To: Longsheng Yin <long...@google.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Siddharth Shah (Gerrit)

      unread,
      Feb 10, 2026, 4:49:09 PMFeb 10
      to Longsheng Yin, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
      Attention needed from Longsheng Yin

      Siddharth Shah added 1 comment

      File tools/metrics/histograms/metadata/facilitated_payments/histograms.xml
      Line 633, Patchset 8: name="FacilitatedPayments.Pix.Transaction.{Result}.Latency.{FrameType}"
      Siddharth Shah . unresolved

      I'd prefer to instead create a new histogram tp avoid the packing too much information in one histogram. FacilitatedPayments.Pix.{FrameType}.TransactionResult This could have the result specified as success/failure.

      In addition, I think we also need to create a new PixCodeCopied.Iframe histogram to count the total number of times, we detect the code in iframes. WDYT?

      Longsheng Yin

      Sounds good, let me update histograms.

      Longsheng Yin
      @sia...@google.com once iframe flag is enabled, FacilitatedPayments.Pix.InitiatePurchaseAction and FacilitatedPayments.Pix.Transaction will have data from both main frame and iframe without knowing the frame types, do we expect this? or do you think we can rename the logging methods and only log when the frame type is check, like:
      ```
      if (is_iframe_) {
      LogPixTransactionResultAndLatencyForIframe(){..}
      } else {
      LogPixTransactionResultAndLatencyForMainFrame(){..}
      }

      ```

      Siddharth Shah

      I believe we still need the `FacilitatedPayments.Pix.InitiatePurchaseAction` and `FacilitatedPayments.Pix.Transaction` to log as they do today. This is because some of the existing metrics dashboards use this metric.

      We can introduce a new histogram to distinguish between iframe and mainframe mainly for the launch so that we are able to measure any regressions. Post launch, I think we should be able to deprecate this metric and only rely on the combined one. WDYT?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Longsheng Yin
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        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: I8deb8d256793d22bac3edebc8131364fdcb3d2b3
        Gerrit-Change-Number: 7551211
        Gerrit-PatchSet: 9
        Gerrit-Owner: Longsheng Yin <long...@google.com>
        Gerrit-Reviewer: Longsheng Yin <long...@google.com>
        Gerrit-Reviewer: Siddharth Shah <sia...@google.com>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Longsheng Yin <long...@google.com>
        Gerrit-Comment-Date: Tue, 10 Feb 2026 21:49:01 +0000
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Longsheng Yin (Gerrit)

        unread,
        Feb 11, 2026, 2:55:36 PMFeb 11
        to Siddharth Shah, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
        Attention needed from Siddharth Shah

        Longsheng Yin added 1 comment

        File tools/metrics/histograms/metadata/facilitated_payments/histograms.xml
        Line 633, Patchset 8: name="FacilitatedPayments.Pix.Transaction.{Result}.Latency.{FrameType}"
        Siddharth Shah . resolved

        I'd prefer to instead create a new histogram tp avoid the packing too much information in one histogram. FacilitatedPayments.Pix.{FrameType}.TransactionResult This could have the result specified as success/failure.

        In addition, I think we also need to create a new PixCodeCopied.Iframe histogram to count the total number of times, we detect the code in iframes. WDYT?

        Longsheng Yin

        Sounds good, let me update histograms.

        Longsheng Yin
        @sia...@google.com once iframe flag is enabled, FacilitatedPayments.Pix.InitiatePurchaseAction and FacilitatedPayments.Pix.Transaction will have data from both main frame and iframe without knowing the frame types, do we expect this? or do you think we can rename the logging methods and only log when the frame type is check, like:
        ```
        if (is_iframe_) {
        LogPixTransactionResultAndLatencyForIframe(){..}
        } else {
        LogPixTransactionResultAndLatencyForMainFrame(){..}
        }

        ```

        Siddharth Shah

        I believe we still need the `FacilitatedPayments.Pix.InitiatePurchaseAction` and `FacilitatedPayments.Pix.Transaction` to log as they do today. This is because some of the existing metrics dashboards use this metric.

        We can introduce a new histogram to distinguish between iframe and mainframe mainly for the launch so that we are able to measure any regressions. Post launch, I think we should be able to deprecate this metric and only rely on the combined one. WDYT?

        Longsheng Yin

        sg! updated this CL to add `FacilitatedPayments.Pix.Transaction.{FrameType}.Result`, ptal.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Siddharth Shah
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Owners
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedReview-Enforcement
          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: I8deb8d256793d22bac3edebc8131364fdcb3d2b3
          Gerrit-Change-Number: 7551211
          Gerrit-PatchSet: 12
          Gerrit-Owner: Longsheng Yin <long...@google.com>
          Gerrit-Reviewer: Longsheng Yin <long...@google.com>
          Gerrit-Reviewer: Siddharth Shah <sia...@google.com>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-Attention: Siddharth Shah <sia...@google.com>
          Gerrit-Comment-Date: Wed, 11 Feb 2026 19:55:28 +0000
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Siddharth Shah (Gerrit)

          unread,
          Feb 12, 2026, 7:17:08 PMFeb 12
          to Longsheng Yin, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
          Attention needed from Longsheng Yin

          Siddharth Shah added 2 comments

          File components/facilitated_payments/core/browser/pix_manager.cc
          Line 74, Patchset 12 (Latest): is_iframe_ = false;
          Siddharth Shah . unresolved

          Can we also add a test to ensure that consecutive calls to OnPixCodeCopiedToClipboard resets the is_iframe_ flag correctly?

          As per [here](https://source.chromium.org/chromium/chromium/src/+/main:components/facilitated_payments/core/browser/facilitated_payments_driver.cc;l=102-106;drc=6fe3560dfe2ab6b5a73655db8843a21d127336f7), if the PixManager does not get destroyed between two copy events then the `is_iframe` field would contain stale value.

          File components/facilitated_payments/core/browser/pix_manager_unittest.cc
          Line 1217, Patchset 12 (Latest):TEST_P(PixManagerTestWithAccountLinkingEnabled, LogTransactionResultForIframe) {
          Siddharth Shah . unresolved

          Please add a test for `LogTransactionResultForMainFrame`

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Longsheng Yin
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            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: I8deb8d256793d22bac3edebc8131364fdcb3d2b3
            Gerrit-Change-Number: 7551211
            Gerrit-PatchSet: 12
            Gerrit-Owner: Longsheng Yin <long...@google.com>
            Gerrit-Reviewer: Longsheng Yin <long...@google.com>
            Gerrit-Reviewer: Siddharth Shah <sia...@google.com>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-Attention: Longsheng Yin <long...@google.com>
            Gerrit-Comment-Date: Fri, 13 Feb 2026 00:17:01 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Siddharth Shah (Gerrit)

            unread,
            Feb 12, 2026, 7:24:02 PMFeb 12
            to Longsheng Yin, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
            Attention needed from Longsheng Yin

            Siddharth Shah added 1 comment

            File components/facilitated_payments/core/metrics/facilitated_payments_metrics.cc
            Line 428, Patchset 12 (Latest): initiate_result);
            Siddharth Shah . unresolved

            Can we use [GetPurchaseActionResultString(PurchaseActionResult result)](https://source.chromium.org/chromium/chromium/src/+/main:components/facilitated_payments/core/utils/facilitated_payments_utils.h;l=12;drc=2e02d6f8818db4a9f0508d28058a9a96322db703) to format the result here instead of creating a new enum?

            Gerrit-Comment-Date: Fri, 13 Feb 2026 00:23:56 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Longsheng Yin (Gerrit)

            unread,
            Feb 13, 2026, 3:08:26 PMFeb 13
            to Siddharth Shah, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
            Attention needed from Siddharth Shah

            Longsheng Yin added 4 comments

            Patchset-level comments
            File-level comment, Patchset 15 (Latest):
            Longsheng Yin . resolved

            Thanks!

            File components/facilitated_payments/core/browser/pix_manager.cc
            Line 74, Patchset 12: is_iframe_ = false;
            Siddharth Shah . unresolved

            Can we also add a test to ensure that consecutive calls to OnPixCodeCopiedToClipboard resets the is_iframe_ flag correctly?

            As per [here](https://source.chromium.org/chromium/chromium/src/+/main:components/facilitated_payments/core/browser/facilitated_payments_driver.cc;l=102-106;drc=6fe3560dfe2ab6b5a73655db8843a21d127336f7), if the PixManager does not get destroyed between two copy events then the `is_iframe` field would contain stale value.

            Longsheng Yin

            Updated the is_iframe_ state at the beginning of OnPixCodeCopiedToClipboard and added `IsIframeStateUpdatedOnConsecutiveCalls` test, PTAL.

            I am wondering will this situation happen in real world? If user clicks twice the copy button within iframe, the is_iframe_ state should be unchanged, same for main frame. Only if user clicks the copy in iframe and dismiss the selector button sheet, then clicks the copy in mainframe, the state should be reset, but in this way, there should be a copy button in both iframe and main frame, could this be possible? not sure I am understanding correctly.

            File components/facilitated_payments/core/browser/pix_manager_unittest.cc
            Line 1217, Patchset 12:TEST_P(PixManagerTestWithAccountLinkingEnabled, LogTransactionResultForIframe) {
            Siddharth Shah . resolved

            Please add a test for `LogTransactionResultForMainFrame`

            Longsheng Yin

            Done

            File components/facilitated_payments/core/metrics/facilitated_payments_metrics.cc
            Line 428, Patchset 12: initiate_result);
            Siddharth Shah . resolved

            Can we use [GetPurchaseActionResultString(PurchaseActionResult result)](https://source.chromium.org/chromium/chromium/src/+/main:components/facilitated_payments/core/utils/facilitated_payments_utils.h;l=12;drc=2e02d6f8818db4a9f0508d28058a9a96322db703) to format the result here instead of creating a new enum?

            Longsheng Yin

            Done

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Siddharth Shah
            Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            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: I8deb8d256793d22bac3edebc8131364fdcb3d2b3
            Gerrit-Change-Number: 7551211
            Gerrit-PatchSet: 15
            Gerrit-Owner: Longsheng Yin <long...@google.com>
            Gerrit-Reviewer: Longsheng Yin <long...@google.com>
            Gerrit-Reviewer: Siddharth Shah <sia...@google.com>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-Attention: Siddharth Shah <sia...@google.com>
            Gerrit-Comment-Date: Fri, 13 Feb 2026 20:08:19 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Siddharth Shah <sia...@google.com>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Siddharth Shah (Gerrit)

            unread,
            Feb 13, 2026, 3:59:55 PMFeb 13
            to Longsheng Yin, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
            Attention needed from Longsheng Yin

            Siddharth Shah added 3 comments

            File components/facilitated_payments/core/browser/pix_manager.cc
            Line 74, Patchset 12: is_iframe_ = false;
            Siddharth Shah . resolved

            Can we also add a test to ensure that consecutive calls to OnPixCodeCopiedToClipboard resets the is_iframe_ flag correctly?

            As per [here](https://source.chromium.org/chromium/chromium/src/+/main:components/facilitated_payments/core/browser/facilitated_payments_driver.cc;l=102-106;drc=6fe3560dfe2ab6b5a73655db8843a21d127336f7), if the PixManager does not get destroyed between two copy events then the `is_iframe` field would contain stale value.

            Longsheng Yin

            Updated the is_iframe_ state at the beginning of OnPixCodeCopiedToClipboard and added `IsIframeStateUpdatedOnConsecutiveCalls` test, PTAL.

            I am wondering will this situation happen in real world? If user clicks twice the copy button within iframe, the is_iframe_ state should be unchanged, same for main frame. Only if user clicks the copy in iframe and dismiss the selector button sheet, then clicks the copy in mainframe, the state should be reset, but in this way, there should be a copy button in both iframe and main frame, could this be possible? not sure I am understanding correctly.

            Siddharth Shah

            In practice, I don't think both iframe and mainframe will show a copy button but it is good to handle it, just in case. Thanks for making the change and adding the test.

            Line 111, Patchset 15 (Latest): if (iframe_url.has_value()) {
            Siddharth Shah . unresolved

            Can we also just use `is_iframe_` here?

            Line 120, Patchset 15 (Latest): is_iframe_ = true;
            Siddharth Shah . unresolved

            Do we need this anymore?

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Longsheng Yin
            Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not satisfiedCode-Review
            • requirement is not satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            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: I8deb8d256793d22bac3edebc8131364fdcb3d2b3
            Gerrit-Change-Number: 7551211
            Gerrit-PatchSet: 15
            Gerrit-Owner: Longsheng Yin <long...@google.com>
            Gerrit-Reviewer: Longsheng Yin <long...@google.com>
            Gerrit-Reviewer: Siddharth Shah <sia...@google.com>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-Attention: Longsheng Yin <long...@google.com>
            Gerrit-Comment-Date: Fri, 13 Feb 2026 20:59:48 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Siddharth Shah <sia...@google.com>
            Comment-In-Reply-To: Longsheng Yin <long...@google.com>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Longsheng Yin (Gerrit)

            unread,
            Feb 13, 2026, 5:12:03 PMFeb 13
            to Siddharth Shah, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
            Attention needed from Siddharth Shah

            Longsheng Yin added 2 comments

            File components/facilitated_payments/core/browser/pix_manager.cc
            Line 111, Patchset 15: if (iframe_url.has_value()) {
            Siddharth Shah . resolved

            Can we also just use `is_iframe_` here?

            Longsheng Yin

            Done

            Line 120, Patchset 15: is_iframe_ = true;
            Siddharth Shah . resolved

            Do we need this anymore?

            Longsheng Yin

            Removed.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Siddharth Shah
            Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement is not satisfiedCode-Owners
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedReview-Enforcement
              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: I8deb8d256793d22bac3edebc8131364fdcb3d2b3
              Gerrit-Change-Number: 7551211
              Gerrit-PatchSet: 16
              Gerrit-Owner: Longsheng Yin <long...@google.com>
              Gerrit-Reviewer: Longsheng Yin <long...@google.com>
              Gerrit-Reviewer: Siddharth Shah <sia...@google.com>
              Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
              Gerrit-Attention: Siddharth Shah <sia...@google.com>
              Gerrit-Comment-Date: Fri, 13 Feb 2026 22:11:52 +0000
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Siddharth Shah (Gerrit)

              unread,
              Feb 13, 2026, 7:05:51 PMFeb 13
              to Longsheng Yin, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
              Attention needed from Longsheng Yin

              Siddharth Shah voted Code-Review+1

              Code-Review+1
              Open in Gerrit

              Related details

              Attention is currently required from:
              • Longsheng Yin
              Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement is not satisfiedCode-Owners
                • requirement satisfiedCode-Review
                • requirement satisfiedReview-Enforcement
                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: I8deb8d256793d22bac3edebc8131364fdcb3d2b3
                Gerrit-Change-Number: 7551211
                Gerrit-PatchSet: 16
                Gerrit-Owner: Longsheng Yin <long...@google.com>
                Gerrit-Reviewer: Longsheng Yin <long...@google.com>
                Gerrit-Reviewer: Siddharth Shah <sia...@google.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-Attention: Longsheng Yin <long...@google.com>
                Gerrit-Comment-Date: Sat, 14 Feb 2026 00:05:44 +0000
                Gerrit-HasComments: No
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Longsheng Yin (Gerrit)

                unread,
                Feb 14, 2026, 12:58:08 AMFeb 14
                to Olivia Saul, Siddharth Shah, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
                Attention needed from Olivia Saul

                Longsheng Yin added 1 comment

                Patchset-level comments
                File-level comment, Patchset 16 (Latest):
                Longsheng Yin . resolved

                Hi Olivia, could you taking a look on this change when you get a chance? Thanks.

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Olivia Saul
                Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement is not satisfiedCode-Owners
                • requirement satisfiedCode-Review
                • requirement satisfiedReview-Enforcement
                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: I8deb8d256793d22bac3edebc8131364fdcb3d2b3
                Gerrit-Change-Number: 7551211
                Gerrit-PatchSet: 16
                Gerrit-Owner: Longsheng Yin <long...@google.com>
                Gerrit-Reviewer: Longsheng Yin <long...@google.com>
                Gerrit-Reviewer: Olivia Saul <os...@google.com>
                Gerrit-Reviewer: Siddharth Shah <sia...@google.com>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-Attention: Olivia Saul <os...@google.com>
                Gerrit-Comment-Date: Sat, 14 Feb 2026 05:58:01 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Olivia Saul (Gerrit)

                unread,
                Feb 17, 2026, 5:20:27 PM (12 days ago) Feb 17
                to Longsheng Yin, Olivia Saul, Siddharth Shah, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
                Attention needed from Longsheng Yin

                Olivia Saul added 5 comments

                File components/facilitated_payments/core/browser/pix_manager.h
                Line 369, Patchset 16 (Latest): bool is_iframe_ = false;
                Olivia Saul . unresolved

                nit: `is_iframe_` is a little vague because it's not 100% clear which "it" that "is" is referring to. What do you think of `triggered_from_iframe_`, does that work in this context?

                File components/facilitated_payments/core/metrics/facilitated_payments_metrics.cc
                Line 409, Patchset 16 (Latest): base::StrCat({"FacilitatedPayments.Pix.Transaction.",
                GetPurchaseActionResultString(result), ".Latency"}),
                Olivia Saul . unresolved

                It's not related to your CL, but I see this was added by Vishwas in crrev.com/c/6279209, but wasn't added to the spreadsheet. Would you mind doing that if you get a chance?

                Line 417, Patchset 16 (Latest): base::StrCat({"FacilitatedPayments.Pix.Transaction",
                is_iframe ? ".Iframe" : ".MainFrame", ".",
                GetPurchaseActionResultString(result)}),
                Olivia Saul . unresolved

                I expanded this entry in go/payments-autofill-uma to cover all six cases ([link](https://docs.google.com/spreadsheets/d/1R5m1KfGLRe3YBvMnjeJ_xeiDQvzTpgx4T0tZioWoqPE/edit?resourcekey=0-TuqaTwhINXPX1vhm5IQ2zA&gid=0#gid=0&range=A276)) so it's easy for people to search for and find. Can you please confirm that I did it correctly?

                File components/facilitated_payments/core/metrics/facilitated_payments_metrics_unittest.cc
                Line 248, Patchset 16 (Parent): base::StrCat({"FacilitatedPayments.Pix.Transaction.",
                GetPurchaseActionResultString(result), ".Latency"}),
                Olivia Saul . unresolved

                This appears to be removing existing test coverage for the Latency histogram? If so, please revert! Your code should be a separate test.

                File tools/metrics/histograms/metadata/facilitated_payments/histograms.xml
                Line 655, Patchset 16 (Latest): the frame that initiated the transaction. The frame type is {FrameType} and
                result is {Result}. [Frequency] Logged at most once per Pix payflow. Pix
                Olivia Saul . unresolved

                These words in brackets get replaced with your descriptions from above. So for instance, on the UMA dashboard, this would end up saying:

                *The frame type is The transaction was initiated in an iframe. and result is Abandoned InitiatePurchaseAction call.*

                Please reword in such a way that this looks more grammatically correct when the UMA dashboard automatically expands the params, instead of becoming a sentence inside a sentence. Thank you!

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Longsheng Yin
                Submit Requirements:
                  • requirement satisfiedCode-Coverage
                  • requirement is not satisfiedCode-Owners
                  • requirement satisfiedCode-Review
                  • requirement is not satisfiedNo-Unresolved-Comments
                  • requirement satisfiedReview-Enforcement
                  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: I8deb8d256793d22bac3edebc8131364fdcb3d2b3
                  Gerrit-Change-Number: 7551211
                  Gerrit-PatchSet: 16
                  Gerrit-Owner: Longsheng Yin <long...@google.com>
                  Gerrit-Reviewer: Longsheng Yin <long...@google.com>
                  Gerrit-Reviewer: Olivia Saul <os...@google.com>
                  Gerrit-Reviewer: Siddharth Shah <sia...@google.com>
                  Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                  Gerrit-Attention: Longsheng Yin <long...@google.com>
                  Gerrit-Comment-Date: Tue, 17 Feb 2026 22:20:19 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: No
                  satisfied_requirement
                  unsatisfied_requirement
                  open
                  diffy

                  Longsheng Yin (Gerrit)

                  unread,
                  12:09 AM (4 hours ago) 12:09 AM
                  to Olivia Saul, Siddharth Shah, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, asvitkine...@chromium.org
                  Attention needed from Olivia Saul

                  Longsheng Yin added 6 comments

                  Patchset-level comments
                  File-level comment, Patchset 17 (Latest):
                  Longsheng Yin . resolved

                  Thanks! Sorry for the delay in responding, I cannot access this branch while working from China.

                  File components/facilitated_payments/core/browser/pix_manager.h
                  Line 369, Patchset 16: bool is_iframe_ = false;
                  Olivia Saul . unresolved

                  nit: `is_iframe_` is a little vague because it's not 100% clear which "it" that "is" is referring to. What do you think of `triggered_from_iframe_`, does that work in this context?

                  Longsheng Yin

                  When `is_iframe_` is true, iframe flow will be taken and PSP URL will be checked, if the URL is not allowlisted, PIX payment won't be triggered from iframe, so I think `triggered_from_iframe_` is kind of incorrect since the triggering is not 100% guaranteed? Do you think something like `is_iframe_available_` is better?

                  File components/facilitated_payments/core/metrics/facilitated_payments_metrics.cc
                  Line 409, Patchset 16: base::StrCat({"FacilitatedPayments.Pix.Transaction.",
                  GetPurchaseActionResultString(result), ".Latency"}),
                  Olivia Saul . resolved

                  It's not related to your CL, but I see this was added by Vishwas in crrev.com/c/6279209, but wasn't added to the spreadsheet. Would you mind doing that if you get a chance?

                  Longsheng Yin

                  Sure, added to the spreadsheet.

                  Line 417, Patchset 16: base::StrCat({"FacilitatedPayments.Pix.Transaction",

                  is_iframe ? ".Iframe" : ".MainFrame", ".",
                  GetPurchaseActionResultString(result)}),
                  Olivia Saul . resolved

                  I expanded this entry in go/payments-autofill-uma to cover all six cases ([link](https://docs.google.com/spreadsheets/d/1R5m1KfGLRe3YBvMnjeJ_xeiDQvzTpgx4T0tZioWoqPE/edit?resourcekey=0-TuqaTwhINXPX1vhm5IQ2zA&gid=0#gid=0&range=A276)) so it's easy for people to search for and find. Can you please confirm that I did it correctly?

                  Longsheng Yin

                  That's correct, thank you!

                  File components/facilitated_payments/core/metrics/facilitated_payments_metrics_unittest.cc
                  Line 248, Patchset 16 (Parent): base::StrCat({"FacilitatedPayments.Pix.Transaction.",
                  GetPurchaseActionResultString(result), ".Latency"}),
                  Olivia Saul . resolved

                  This appears to be removing existing test coverage for the Latency histogram? If so, please revert! Your code should be a separate test.

                  Longsheng Yin

                  Sorry, added it back.

                  File tools/metrics/histograms/metadata/facilitated_payments/histograms.xml
                  Line 655, Patchset 16: the frame that initiated the transaction. The frame type is {FrameType} and

                  result is {Result}. [Frequency] Logged at most once per Pix payflow. Pix
                  Olivia Saul . resolved

                  These words in brackets get replaced with your descriptions from above. So for instance, on the UMA dashboard, this would end up saying:

                  *The frame type is The transaction was initiated in an iframe. and result is Abandoned InitiatePurchaseAction call.*

                  Please reword in such a way that this looks more grammatically correct when the UMA dashboard automatically expands the params, instead of becoming a sentence inside a sentence. Thank you!

                  Longsheng Yin

                  Thanks for the detailed explanation! I now understand how to interpret the bracket notation in the summary. Reworded the summaries of this histogram, "PixFrameType" and "PurchaseActionResult". Since "PurchaseActionResult" is a shared variant, will this rewording break existing histograms?

                  Open in Gerrit

                  Related details

                  Attention is currently required from:
                  • Olivia Saul
                  Submit Requirements:
                  • requirement satisfiedCode-Coverage
                  • requirement is not satisfiedCode-Owners
                  • requirement satisfiedCode-Review
                  • requirement is not satisfiedNo-Unresolved-Comments
                  • requirement satisfiedReview-Enforcement
                  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: I8deb8d256793d22bac3edebc8131364fdcb3d2b3
                  Gerrit-Change-Number: 7551211
                  Gerrit-PatchSet: 17
                  Gerrit-Owner: Longsheng Yin <long...@google.com>
                  Gerrit-Reviewer: Longsheng Yin <long...@google.com>
                  Gerrit-Reviewer: Olivia Saul <os...@google.com>
                  Gerrit-Reviewer: Siddharth Shah <sia...@google.com>
                  Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                  Gerrit-Attention: Olivia Saul <os...@google.com>
                  Gerrit-Comment-Date: Mon, 02 Mar 2026 05:09:30 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: No
                  Comment-In-Reply-To: Olivia Saul <os...@google.com>
                  satisfied_requirement
                  unsatisfied_requirement
                  open
                  diffy
                  Reply all
                  Reply to author
                  Forward
                  0 new messages