[iOS] Rename empty-string variant in iOS save prompt histograms [chromium/src : main]

0 views
Skip to first unread message

yiwen qian (Gerrit)

unread,
Jan 14, 2026, 3:33:39 AM (4 days ago) Jan 14
to Slobodan Pejic, Stephen McGruer, Olivia Saul, Chromium LUCI CQ, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, feature-me...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, sloboda...@chromium.org, asvitkine...@chromium.org
Attention needed from Olivia Saul, Slobodan Pejic and Stephen McGruer

yiwen qian added 1 comment

File tools/metrics/histograms/metadata/autofill/histograms.xml
Line 6784, Patchset 7: shown or not shown for a card to be saved as a {SaveDestination} card, and
this card is not saved with CVC. Is emitted whenever card save is offered or
Olivia Saul . unresolved

Oh, I...wasn't aware of this. I thought the `""` was the parent aggregate metric and `.SavingWithCvc` was the subset that included CVC. That's generally how we do our metrics. If this version *without* `.SavingWithCvc` means that CVC was *explicitly missing*, then we should change this to be `.SavingWithoutCvc` instead of blank.

That might even be better, because then you don't have to do the rest of this at all because there's no longer an empty histogram variant! (Although I generally still do recommend having a parent histogram that captures *all* data...)

CC @smcg...@chromium.org, thoughts?

Slobodan Pejic

drive-by: IIRC the intent was to have

  • 2 high-level aggregate metrics for local and server - `Autofill.SaveCreditCardPrompt.(Local|Server)` (note: the metrics dashboard can slice these per-platform as well), and
  • the fine grained per platforms metrics for their specific UI treatment. `Autofill.SaveCreditCardPrompt.(IOS|Android|Desktop)....`

(go/save-card-metric-refactor)

Context: On IOS we are displaying the bottom sheet only when there are no strikes and also both the expiry nor the cardholder name are present (the bottom sheet does not support editing yet).

Olivia Saul

Thanks for the added context Slobo; agreed. Let's wait for Stephen to come back in a couple weeks and see what he thinks, Yiwen.

Stephen McGruer

Slobo is correct here. The goal is to have high-level aggregate methods that make sense across all platforms (and so can be considered in summation across platforms with the usual caveats about UMA extrapolation), then each platform can emit platform-specific metrics if it needs them.

In the case of iOS, we needed to measure + compare across pre-bottomsheet and post-bottomsheet behaviors , and needed to split out the pre-bottomsheet behaviors to specifically match the cases where we were going to offer a bottomsheet (0 strikes, no-fix-flow). So we created something very specific.

For CVC save, the question is probably what do you actually need/want to measure here? What data use-cases do you care about, what decisions are you looking to make, etc :).

yiwen qian

Thanks everyone for the context and feedback.

Based on the discussion, I've updated the CL to rename the empty string variant to `.SavingWithoutCvc`. This avoids the issue with empty variants and makes it explicit that the metrics distinguish between saving *with* CVC and *without* CVC (rather than one being an aggregate).

Open in Gerrit

Related details

Attention is currently required from:
  • Olivia Saul
  • Slobodan Pejic
  • Stephen McGruer
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: Id93f46ec7077a63521c8addd3854520e9e9954e6
Gerrit-Change-Number: 7264145
Gerrit-PatchSet: 17
Gerrit-Owner: yiwen qian <yiwe...@chromium.org>
Gerrit-Reviewer: Olivia Saul <os...@google.com>
Gerrit-Reviewer: yiwen qian <yiwe...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-CC: Slobodan Pejic <slob...@chromium.org>
Gerrit-CC: Stephen McGruer <smcg...@chromium.org>
Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
Gerrit-Attention: Slobodan Pejic <slob...@chromium.org>
Gerrit-Attention: Olivia Saul <os...@google.com>
Gerrit-Comment-Date: Wed, 14 Jan 2026 08:33:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Stephen McGruer <smcg...@chromium.org>
Comment-In-Reply-To: Slobodan Pejic <slob...@chromium.org>
Comment-In-Reply-To: Olivia Saul <os...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Olivia Saul (Gerrit)

unread,
Jan 14, 2026, 4:53:34 PM (4 days ago) Jan 14
to yiwen qian, Olivia Saul, Slobodan Pejic, Stephen McGruer, Chromium LUCI CQ, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, feature-me...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, sloboda...@chromium.org, asvitkine...@chromium.org
Attention needed from Slobodan Pejic, Stephen McGruer and yiwen qian

Olivia Saul voted and added 3 comments

Votes added by Olivia Saul

Code-Review+1

3 comments

Patchset-level comments
File-level comment, Patchset 17 (Latest):
Olivia Saul . resolved

Approving on the basis that it fixes the issue with the empty string histogram variant.

This LGTM is not a commentary on if this is the *right* thing to log or not. That's kind of separate, and ideally would have been handled in the CL before this one.

Commit Message
Line 18, Patchset 17 (Latest):
Olivia Saul . unresolved

Looks like the automated metrics tracker is pointing out that a lot of metrics moved; please add an obsoletion message as it mentions, explaining that the data has moved.

File tools/metrics/histograms/metadata/autofill/histograms.xml
Line 751, Patchset 17 (Latest):<variants name="AutofillSaveCardWithCvcSituation">
Olivia Saul . unresolved

Please drop the leading `.` from these and move it to the two histograms that utilize it

Open in Gerrit

Related details

Attention is currently required from:
  • Slobodan Pejic
  • Stephen McGruer
  • yiwen qian
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not 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: Id93f46ec7077a63521c8addd3854520e9e9954e6
    Gerrit-Change-Number: 7264145
    Gerrit-PatchSet: 17
    Gerrit-Owner: yiwen qian <yiwe...@chromium.org>
    Gerrit-Reviewer: Olivia Saul <os...@google.com>
    Gerrit-Reviewer: yiwen qian <yiwe...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Slobodan Pejic <slob...@chromium.org>
    Gerrit-CC: Stephen McGruer <smcg...@chromium.org>
    Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
    Gerrit-Attention: Slobodan Pejic <slob...@chromium.org>
    Gerrit-Attention: yiwen qian <yiwe...@chromium.org>
    Gerrit-Comment-Date: Wed, 14 Jan 2026 21:53:15 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    yiwen qian (Gerrit)

    unread,
    Jan 15, 2026, 2:25:31 AM (3 days ago) Jan 15
    to Olivia Saul, Slobodan Pejic, Stephen McGruer, Chromium LUCI CQ, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, feature-me...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, sloboda...@chromium.org, asvitkine...@chromium.org
    Attention needed from Olivia Saul, Slobodan Pejic and Stephen McGruer

    yiwen qian added 2 comments

    Commit Message
    Olivia Saul . unresolved

    Looks like the automated metrics tracker is pointing out that a lot of metrics moved; please add an obsoletion message as it mentions, explaining that the data has moved.

    yiwen qian

    The code modified both variant name and histogram name, so the metrics warning persists even though the obsolete message added.

    File tools/metrics/histograms/metadata/autofill/histograms.xml
    Line 751, Patchset 17:<variants name="AutofillSaveCardWithCvcSituation">
    Olivia Saul . resolved

    Please drop the leading `.` from these and move it to the two histograms that utilize it

    yiwen qian

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Olivia Saul
    • Slobodan Pejic
    • Stephen McGruer
    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: Id93f46ec7077a63521c8addd3854520e9e9954e6
      Gerrit-Change-Number: 7264145
      Gerrit-PatchSet: 33
      Gerrit-Owner: yiwen qian <yiwe...@chromium.org>
      Gerrit-Reviewer: Olivia Saul <os...@google.com>
      Gerrit-Reviewer: yiwen qian <yiwe...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: Slobodan Pejic <slob...@chromium.org>
      Gerrit-CC: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
      Gerrit-Attention: Slobodan Pejic <slob...@chromium.org>
      Gerrit-Attention: Olivia Saul <os...@google.com>
      Gerrit-Comment-Date: Thu, 15 Jan 2026 07:25:20 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Olivia Saul <os...@google.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Olivia Saul (Gerrit)

      unread,
      Jan 15, 2026, 2:03:17 PM (3 days ago) Jan 15
      to yiwen qian, Olivia Saul, Slobodan Pejic, Stephen McGruer, Chromium LUCI CQ, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, feature-me...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, sloboda...@chromium.org, asvitkine...@chromium.org
      Attention needed from Slobodan Pejic, Stephen McGruer and yiwen qian

      Olivia Saul voted and added 1 comment

      Votes added by Olivia Saul

      Code-Review+1

      1 comment

      Patchset-level comments
      File-level comment, Patchset 33 (Latest):
      Olivia Saul . resolved

      PS 17->33 LGTM

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Slobodan Pejic
      • Stephen McGruer
      • yiwen qian
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not 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: Id93f46ec7077a63521c8addd3854520e9e9954e6
        Gerrit-Change-Number: 7264145
        Gerrit-PatchSet: 33
        Gerrit-Owner: yiwen qian <yiwe...@chromium.org>
        Gerrit-Reviewer: Olivia Saul <os...@google.com>
        Gerrit-Reviewer: yiwen qian <yiwe...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-CC: Slobodan Pejic <slob...@chromium.org>
        Gerrit-CC: Stephen McGruer <smcg...@chromium.org>
        Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
        Gerrit-Attention: Slobodan Pejic <slob...@chromium.org>
        Gerrit-Attention: yiwen qian <yiwe...@chromium.org>
        Gerrit-Comment-Date: Thu, 15 Jan 2026 19:02:56 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        yiwen qian (Gerrit)

        unread,
        Jan 15, 2026, 3:08:24 PM (3 days ago) Jan 15
        to Sylvain Defresne, Tommy Martino, Olivia Saul, Slobodan Pejic, Stephen McGruer, Chromium LUCI CQ, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, feature-me...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, sloboda...@chromium.org, asvitkine...@chromium.org
        Attention needed from Slobodan Pejic, Stephen McGruer, Sylvain Defresne and Tommy Martino

        yiwen qian added 1 comment

        Patchset-level comments
        yiwen qian . resolved

        Hi Tommy and Sylvain, could you please review this CL? Thank you!

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Slobodan Pejic
        • Stephen McGruer
        • Sylvain Defresne
        • Tommy Martino
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not 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: Id93f46ec7077a63521c8addd3854520e9e9954e6
        Gerrit-Change-Number: 7264145
        Gerrit-PatchSet: 33
        Gerrit-Owner: yiwen qian <yiwe...@chromium.org>
        Gerrit-Reviewer: Olivia Saul <os...@google.com>
        Gerrit-Reviewer: Sylvain Defresne <sdef...@chromium.org>
        Gerrit-Reviewer: Tommy Martino <tmar...@chromium.org>
        Gerrit-Reviewer: yiwen qian <yiwe...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-CC: Slobodan Pejic <slob...@chromium.org>
        Gerrit-CC: Stephen McGruer <smcg...@chromium.org>
        Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
        Gerrit-Attention: Slobodan Pejic <slob...@chromium.org>
        Gerrit-Attention: Sylvain Defresne <sdef...@chromium.org>
        Gerrit-Attention: Tommy Martino <tmar...@chromium.org>
        Gerrit-Comment-Date: Thu, 15 Jan 2026 20:08:02 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Tommy Martino (Gerrit)

        unread,
        Jan 16, 2026, 10:31:51 AM (2 days ago) Jan 16
        to yiwen qian, Sylvain Defresne, Olivia Saul, Slobodan Pejic, Stephen McGruer, Chromium LUCI CQ, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, feature-me...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, sloboda...@chromium.org, asvitkine...@chromium.org
        Attention needed from Slobodan Pejic, Stephen McGruer, Sylvain Defresne and yiwen qian

        Tommy Martino voted and added 2 comments

        Votes added by Tommy Martino

        Code-Review+1

        2 comments

        Patchset-level comments
        Tommy Martino . resolved

        lgtm. However, please also get an lgtm from either Stephen or Slobodan before landing.

        File ios/chrome/browser/autofill/ui_bundled/bottom_sheet/save_card_bottom_sheet_mediator_unittest.mm
        Line 246, Patchset 33 (Latest): ".Server.BottomSheet.SavingWithoutCvc"}),
        Tommy Martino . unresolved

        nit: Since you defined a constant above for this, please use it here (and lines 252, 592, 598, 743). You can simply add it as a third item in the list of strings to strcat.

        Same goes for the other unit test files where you added a constant.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Slobodan Pejic
        • Stephen McGruer
        • Sylvain Defresne
        • yiwen qian
        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: Id93f46ec7077a63521c8addd3854520e9e9954e6
          Gerrit-Change-Number: 7264145
          Gerrit-PatchSet: 33
          Gerrit-Owner: yiwen qian <yiwe...@chromium.org>
          Gerrit-Reviewer: Olivia Saul <os...@google.com>
          Gerrit-Reviewer: Sylvain Defresne <sdef...@chromium.org>
          Gerrit-Reviewer: Tommy Martino <tmar...@chromium.org>
          Gerrit-Reviewer: yiwen qian <yiwe...@chromium.org>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-CC: Slobodan Pejic <slob...@chromium.org>
          Gerrit-CC: Stephen McGruer <smcg...@chromium.org>
          Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
          Gerrit-Attention: Slobodan Pejic <slob...@chromium.org>
          Gerrit-Attention: yiwen qian <yiwe...@chromium.org>
          Gerrit-Attention: Sylvain Defresne <sdef...@chromium.org>
          Gerrit-Comment-Date: Fri, 16 Jan 2026 15:31:39 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Stephen McGruer (Gerrit)

          unread,
          Jan 16, 2026, 1:50:28 PM (2 days ago) Jan 16
          to yiwen qian, Stephen McGruer, Tommy Martino, Sylvain Defresne, Olivia Saul, Slobodan Pejic, Chromium LUCI CQ, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, feature-me...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, sloboda...@chromium.org, asvitkine...@chromium.org
          Attention needed from Slobodan Pejic, Sylvain Defresne and yiwen qian

          Stephen McGruer voted and added 1 comment

          Votes added by Stephen McGruer

          Code-Review+1

          1 comment

          Patchset-level comments
          Olivia Saul . resolved

          Approving on the basis that it fixes the issue with the empty string histogram variant.

          This LGTM is not a commentary on if this is the *right* thing to log or not. That's kind of separate, and ideally would have been handled in the CL before this one.

          Stephen McGruer

          Ack. As per the other thread, those are concerns I have (that this metric was unnecessarily appended to rather than actually figuring out what we care about measuring for CVCs), but since this doesn't actually increase the combinatorial complexity vs what already landed and it fixes the bug that the histogram started meaning a different thing once CVC save was landed, I think it's ok...

          If we plan to take bottomsheet to more than just num-strikes=0 && no-fix-flow (e.g., imagine we want to take it to num-strikes=0-1) this might be a pain as we now need to sum across CVC histograms. But we'll cross that bridge when we get there (and like I said, that pain has already been landed when the CVC metrics were first landed).

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Slobodan Pejic
          • Sylvain Defresne
          • yiwen qian
          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: Id93f46ec7077a63521c8addd3854520e9e9954e6
          Gerrit-Change-Number: 7264145
          Gerrit-PatchSet: 33
          Gerrit-Owner: yiwen qian <yiwe...@chromium.org>
          Gerrit-Reviewer: Olivia Saul <os...@google.com>
          Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
          Gerrit-Reviewer: Sylvain Defresne <sdef...@chromium.org>
          Gerrit-Reviewer: Tommy Martino <tmar...@chromium.org>
          Gerrit-Reviewer: yiwen qian <yiwe...@chromium.org>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-CC: Slobodan Pejic <slob...@chromium.org>
          Gerrit-Attention: Slobodan Pejic <slob...@chromium.org>
          Gerrit-Attention: yiwen qian <yiwe...@chromium.org>
          Gerrit-Attention: Sylvain Defresne <sdef...@chromium.org>
          Gerrit-Comment-Date: Fri, 16 Jan 2026 18:50:17 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          Comment-In-Reply-To: Olivia Saul <os...@google.com>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          yiwen qian (Gerrit)

          unread,
          1:31 AM (7 hours ago) 1:31 AM
          to Stephen McGruer, Tommy Martino, Sylvain Defresne, Olivia Saul, Slobodan Pejic, Chromium LUCI CQ, AyeAye, Chromium Metrics Reviews, chromium...@chromium.org, feature-me...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, tmartino+tran...@chromium.org, browser-comp...@chromium.org, ios-revie...@chromium.org, sloboda...@chromium.org, asvitkine...@chromium.org
          Attention needed from Olivia Saul, Slobodan Pejic, Stephen McGruer, Sylvain Defresne and Tommy Martino

          yiwen qian voted and added 2 comments

          Votes added by yiwen qian

          Commit-Queue+1

          2 comments

          File ios/chrome/browser/autofill/ui_bundled/bottom_sheet/save_card_bottom_sheet_mediator_unittest.mm
          Line 246, Patchset 33: ".Server.BottomSheet.SavingWithoutCvc"}),
          Tommy Martino . resolved

          nit: Since you defined a constant above for this, please use it here (and lines 252, 592, 598, 743). You can simply add it as a third item in the list of strings to strcat.

          Same goes for the other unit test files where you added a constant.

          yiwen qian

          Done

          File tools/metrics/histograms/metadata/autofill/histograms.xml
          Line 6784, Patchset 7: shown or not shown for a card to be saved as a {SaveDestination} card, and
          this card is not saved with CVC. Is emitted whenever card save is offered or
          Olivia Saul . resolved

          Oh, I...wasn't aware of this. I thought the `""` was the parent aggregate metric and `.SavingWithCvc` was the subset that included CVC. That's generally how we do our metrics. If this version *without* `.SavingWithCvc` means that CVC was *explicitly missing*, then we should change this to be `.SavingWithoutCvc` instead of blank.

          That might even be better, because then you don't have to do the rest of this at all because there's no longer an empty histogram variant! (Although I generally still do recommend having a parent histogram that captures *all* data...)

          CC @smcg...@chromium.org, thoughts?

          Slobodan Pejic

          drive-by: IIRC the intent was to have

          • 2 high-level aggregate metrics for local and server - `Autofill.SaveCreditCardPrompt.(Local|Server)` (note: the metrics dashboard can slice these per-platform as well), and
          • the fine grained per platforms metrics for their specific UI treatment. `Autofill.SaveCreditCardPrompt.(IOS|Android|Desktop)....`

          (go/save-card-metric-refactor)

          Context: On IOS we are displaying the bottom sheet only when there are no strikes and also both the expiry nor the cardholder name are present (the bottom sheet does not support editing yet).

          Olivia Saul

          Thanks for the added context Slobo; agreed. Let's wait for Stephen to come back in a couple weeks and see what he thinks, Yiwen.

          Stephen McGruer

          Slobo is correct here. The goal is to have high-level aggregate methods that make sense across all platforms (and so can be considered in summation across platforms with the usual caveats about UMA extrapolation), then each platform can emit platform-specific metrics if it needs them.

          In the case of iOS, we needed to measure + compare across pre-bottomsheet and post-bottomsheet behaviors , and needed to split out the pre-bottomsheet behaviors to specifically match the cases where we were going to offer a bottomsheet (0 strikes, no-fix-flow). So we created something very specific.

          For CVC save, the question is probably what do you actually need/want to measure here? What data use-cases do you care about, what decisions are you looking to make, etc :).

          yiwen qian

          Thanks everyone for the context and feedback.

          Based on the discussion, I've updated the CL to rename the empty string variant to `.SavingWithoutCvc`. This avoids the issue with empty variants and makes it explicit that the metrics distinguish between saving *with* CVC and *without* CVC (rather than one being an aggregate).

          yiwen qian

          Done

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Olivia Saul
          • Slobodan Pejic
          • Stephen McGruer
          • Sylvain Defresne
          • Tommy Martino
          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: Id93f46ec7077a63521c8addd3854520e9e9954e6
            Gerrit-Change-Number: 7264145
            Gerrit-PatchSet: 34
            Gerrit-Owner: yiwen qian <yiwe...@chromium.org>
            Gerrit-Reviewer: Olivia Saul <os...@google.com>
            Gerrit-Reviewer: Stephen McGruer <smcg...@chromium.org>
            Gerrit-Reviewer: Sylvain Defresne <sdef...@chromium.org>
            Gerrit-Reviewer: Tommy Martino <tmar...@chromium.org>
            Gerrit-Reviewer: yiwen qian <yiwe...@chromium.org>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-CC: Slobodan Pejic <slob...@chromium.org>
            Gerrit-Attention: Stephen McGruer <smcg...@chromium.org>
            Gerrit-Attention: Slobodan Pejic <slob...@chromium.org>
            Gerrit-Attention: Sylvain Defresne <sdef...@chromium.org>
            Gerrit-Attention: Olivia Saul <os...@google.com>
            Gerrit-Attention: Tommy Martino <tmar...@chromium.org>
            Gerrit-Comment-Date: Sun, 18 Jan 2026 06:31:09 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            Comment-In-Reply-To: Stephen McGruer <smcg...@chromium.org>
            Comment-In-Reply-To: Slobodan Pejic <slob...@chromium.org>
            Comment-In-Reply-To: yiwen qian <yiwe...@chromium.org>
            Comment-In-Reply-To: Tommy Martino <tmar...@chromium.org>
            Comment-In-Reply-To: Olivia Saul <os...@google.com>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy
            Reply all
            Reply to author
            Forward
            0 new messages