[contextual tasks] Add voice metrics for contextual tasks [chromium/src : main]

0 views
Skip to first unread message

James Leung (Gerrit)

unread,
Jan 6, 2026, 7:47:07 PM (4 days ago) Jan 6
to Ananya Seelam, Duncan Mercer, Chromium Metrics Reviews, chromium...@chromium.org, Sophie Chang, asvitkine...@chromium.org, oshima...@chromium.org
Attention needed from Ananya Seelam and Duncan Mercer

James Leung added 1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
James Leung . resolved

initial thoughts?

Open in Gerrit

Related details

Attention is currently required from:
  • Ananya Seelam
  • Duncan Mercer
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: Id95752eb792f308bc159216b0d9a66d6c5f0578f
Gerrit-Change-Number: 7396701
Gerrit-PatchSet: 2
Gerrit-Owner: James Leung <james...@google.com>
Gerrit-Reviewer: Ananya Seelam <ananya...@google.com>
Gerrit-Reviewer: Duncan Mercer <mer...@google.com>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-CC: Sophie Chang <sophi...@chromium.org>
Gerrit-Attention: Ananya Seelam <ananya...@google.com>
Gerrit-Attention: Duncan Mercer <mer...@google.com>
Gerrit-Comment-Date: Wed, 07 Jan 2026 00:46:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

James Leung (Gerrit)

unread,
Jan 6, 2026, 7:47:48 PM (4 days ago) Jan 6
to Ananya Seelam, Duncan Mercer, Chromium Metrics Reviews, chromium...@chromium.org, Sophie Chang, asvitkine...@chromium.org, oshima...@chromium.org
Attention needed from Ananya Seelam and Duncan Mercer

James Leung added 1 comment

File tools/metrics/histograms/metadata/contextual_tasks/enums.xml
Line 57, Patchset 2 (Latest):<!-- LINT.ThenChange(//chrome/browser/contextual_tasks/constants.ts:VoiceSearchState) -->
James Leung . unresolved

did i do the linting right?

Open in Gerrit

Related details

Attention is currently required from:
  • Ananya Seelam
  • Duncan Mercer
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
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ananya Seelam (Gerrit)

    unread,
    Jan 7, 2026, 11:21:48 AM (3 days ago) Jan 7
    to James Leung, Chromium LUCI CQ, Duncan Mercer, Chromium Metrics Reviews, chromium...@chromium.org, Sophie Chang, asvitkine...@chromium.org, oshima...@chromium.org
    Attention needed from Duncan Mercer and James Leung

    Ananya Seelam added 12 comments

    Patchset-level comments
    Ananya Seelam . resolved

    Hi James! Great work! Left some comments below.

    Commit Message
    Line 8, Patchset 2 (Latest):
    Ananya Seelam . unresolved

    Please summarize metrics here for future readers of this CL.

    File chrome/browser/resources/contextual_tasks/composebox.ts
    Line 23, Patchset 2 (Latest): // Safety return statement in rare case chrome metrics is not available
    Ananya Seelam . unresolved
    nit: add period.
    ```suggestion
    // Safety return statement in rare case chrome metrics is not available.
    ```
    File chrome/test/data/webui/contextual_tasks/composebox_test.ts
    Line 981, Patchset 2 (Latest): /* Done with transcribing once there is one isFinal.
    Ananya Seelam . unresolved
    nit: add backticks to code in comments.
    ```suggestion
    /* Done with transcribing once there is one `isFinal`.
    ```
    Line 983, Patchset 2 (Latest): * take the specific result marked with resultIndex.
    Ananya Seelam . unresolved
    nit: add backticks 
    ```suggestion
    * take the specific result marked with `resultIndex`.
    ```
    File tools/metrics/histograms/metadata/contextual_tasks/enums.xml
    Line 50, Patchset 2 (Latest): <int value="0" label="VoiceSearchButtonClicked"/>
    <int value="1" label="VoiceSearchTranscriptionSuccess"/>
    <int value="2" label="VoiceSearchError"/>
    <int value="3" label="VoiceSearchErrorAndCanceled"/>
    <int value="4" label="VoiceSearchUserCanceled"/>
    Ananya Seelam . unresolved

    The label values don't have to be CamelCase here. See enums above.

    Line 57, Patchset 2 (Latest):<!-- LINT.ThenChange(//chrome/browser/contextual_tasks/constants.ts:VoiceSearchState) -->
    James Leung . unresolved

    did i do the linting right?

    Ananya Seelam

    I believe you need to make the names of both enums (in the constants file and in the enums file) the same. The lint directive is expecting `VoiceSearchState`.

    Line 57, Patchset 2 (Latest):<!-- LINT.ThenChange(//chrome/browser/contextual_tasks/constants.ts:VoiceSearchState) -->
    Ananya Seelam . unresolved

    Please fix this ERROR reported by If This Then That: Changes in the preceding block may need to be reflected in these files: /chrome/...

    Changes in the preceding block may need to be reflected in these files: /chrome/browser/contextual_tasks/constants.ts If this does not apply, add 'NO_IFTTT=some reason...' to your commit message

    File tools/metrics/histograms/metadata/contextual_tasks/histograms.xml
    Line 243, Patchset 2 (Latest): Tracks user interactions with the voice search feature on the NTP.
    Ananya Seelam . unresolved

    Contextual Tasks? This is not for NTP right?

    File ui/webui/resources/cr_components/composebox/composebox.ts
    Line 803, Patchset 2 (Latest): // If was an error that canceled voice search.
    Ananya Seelam . unresolved
    nit: 
    ```suggestion
    // An error that canceled voice search.
    ```
    Line 806, Patchset 2 (Latest): // If was error that did not cancel voice search.
    Ananya Seelam . unresolved
    nit: 
    ```suggestion
    // An error that did not cancel voice search.
    ```
    File ui/webui/resources/cr_components/composebox/composebox_voice_search.ts
    Line 235, Patchset 2 (Latest): this.fire('voice-search-cancel', /*user-canceled=*/ false);
    Ananya Seelam . unresolved

    is there a difference between `user-canceled` and `canceled`? If not, keep the names consistent here and below.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Duncan Mercer
    • James Leung
    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: Id95752eb792f308bc159216b0d9a66d6c5f0578f
    Gerrit-Change-Number: 7396701
    Gerrit-PatchSet: 2
    Gerrit-Owner: James Leung <james...@google.com>
    Gerrit-Reviewer: Ananya Seelam <ananya...@google.com>
    Gerrit-Reviewer: Duncan Mercer <mer...@google.com>
    Gerrit-Reviewer: James Leung <james...@google.com>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Sophie Chang <sophi...@chromium.org>
    Gerrit-Attention: Duncan Mercer <mer...@google.com>
    Gerrit-Attention: James Leung <james...@google.com>
    Gerrit-Comment-Date: Wed, 07 Jan 2026 16:21:39 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: James Leung <james...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    James Leung (Gerrit)

    unread,
    Jan 7, 2026, 3:07:11 PM (3 days ago) Jan 7
    to Chromium LUCI CQ, Ananya Seelam, Duncan Mercer, Chromium Metrics Reviews, chromium...@chromium.org, Sophie Chang, asvitkine...@chromium.org, oshima...@chromium.org
    Attention needed from Ananya Seelam and Duncan Mercer

    James Leung added 11 comments

    Commit Message
    Line 8, Patchset 2:
    Ananya Seelam . resolved

    Please summarize metrics here for future readers of this CL.

    James Leung

    Done

    File chrome/browser/resources/contextual_tasks/composebox.ts
    Line 23, Patchset 2: // Safety return statement in rare case chrome metrics is not available
    Ananya Seelam . resolved
    nit: add period.
    ```suggestion
    // Safety return statement in rare case chrome metrics is not available.
    ```
    James Leung

    Done

    File chrome/test/data/webui/contextual_tasks/composebox_test.ts
    Line 981, Patchset 2: /* Done with transcribing once there is one isFinal.
    Ananya Seelam . resolved
    nit: add backticks to code in comments.
    ```suggestion
    /* Done with transcribing once there is one `isFinal`.
    ```
    James Leung

    Done

    Line 983, Patchset 2: * take the specific result marked with resultIndex.
    Ananya Seelam . resolved
    nit: add backticks 
    ```suggestion
    * take the specific result marked with `resultIndex`.
    ```
    James Leung

    Done

    File tools/metrics/histograms/metadata/contextual_tasks/enums.xml
    Line 50, Patchset 2: <int value="0" label="VoiceSearchButtonClicked"/>

    <int value="1" label="VoiceSearchTranscriptionSuccess"/>
    <int value="2" label="VoiceSearchError"/>
    <int value="3" label="VoiceSearchErrorAndCanceled"/>
    <int value="4" label="VoiceSearchUserCanceled"/>
    Ananya Seelam . resolved

    The label values don't have to be CamelCase here. See enums above.

    James Leung

    Done

    Line 57, Patchset 2:<!-- LINT.ThenChange(//chrome/browser/contextual_tasks/constants.ts:VoiceSearchState) -->
    Ananya Seelam . resolved

    Please fix this ERROR reported by If This Then That: Changes in the preceding block may need to be reflected in these files: /chrome/...

    Changes in the preceding block may need to be reflected in these files: /chrome/browser/contextual_tasks/constants.ts If this does not apply, add 'NO_IFTTT=some reason...' to your commit message

    James Leung

    Done

    Line 57, Patchset 2:<!-- LINT.ThenChange(//chrome/browser/contextual_tasks/constants.ts:VoiceSearchState) -->
    James Leung . resolved

    did i do the linting right?

    Ananya Seelam

    I believe you need to make the names of both enums (in the constants file and in the enums file) the same. The lint directive is expecting `VoiceSearchState`.

    James Leung

    Done

    File tools/metrics/histograms/metadata/contextual_tasks/histograms.xml
    Line 243, Patchset 2: Tracks user interactions with the voice search feature on the NTP.
    Ananya Seelam . resolved

    Contextual Tasks? This is not for NTP right?

    James Leung

    Done

    File ui/webui/resources/cr_components/composebox/composebox.ts
    Line 803, Patchset 2: // If was an error that canceled voice search.
    Ananya Seelam . resolved
    nit: 
    ```suggestion
    // An error that canceled voice search.
    ```
    James Leung

    Done

    Line 806, Patchset 2: // If was error that did not cancel voice search.
    Ananya Seelam . resolved
    nit: 
    ```suggestion
    // An error that did not cancel voice search.
    ```
    James Leung

    Done

    File ui/webui/resources/cr_components/composebox/composebox_voice_search.ts
    Line 235, Patchset 2: this.fire('voice-search-cancel', /*user-canceled=*/ false);
    Ananya Seelam . resolved

    is there a difference between `user-canceled` and `canceled`? If not, keep the names consistent here and below.

    James Leung

    yes, the difference is that user canceled is canceled by user while canceled is canceled by error

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ananya Seelam
    • Duncan Mercer
    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: Id95752eb792f308bc159216b0d9a66d6c5f0578f
      Gerrit-Change-Number: 7396701
      Gerrit-PatchSet: 4
      Gerrit-Owner: James Leung <james...@google.com>
      Gerrit-Reviewer: Ananya Seelam <ananya...@google.com>
      Gerrit-Reviewer: Duncan Mercer <mer...@google.com>
      Gerrit-Reviewer: James Leung <james...@google.com>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: Sophie Chang <sophi...@chromium.org>
      Gerrit-Attention: Ananya Seelam <ananya...@google.com>
      Gerrit-Attention: Duncan Mercer <mer...@google.com>
      Gerrit-Comment-Date: Wed, 07 Jan 2026 20:07:02 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Ananya Seelam <ananya...@google.com>
      Comment-In-Reply-To: James Leung <james...@google.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Ananya Seelam (Gerrit)

      unread,
      Jan 7, 2026, 3:13:36 PM (3 days ago) Jan 7
      to James Leung, Chromium LUCI CQ, Duncan Mercer, Chromium Metrics Reviews, chromium...@chromium.org, Sophie Chang, asvitkine...@chromium.org, oshima...@chromium.org
      Attention needed from Duncan Mercer and James Leung

      Ananya Seelam added 1 comment

      File tools/metrics/histograms/metadata/contextual_tasks/enums.xml
      Line 57, Patchset 4 (Latest):<!-- LINT.ThenChange(//chrome/browser/contextual_tasks/constants.ts:VoiceSearchState) -->
      Ananya Seelam . unresolved

      I would add the `NO_IFTTT=some reason...'` to your cl description you can say this is a false positive since VoiceSearchState name matches.


      Please fix this ERROR reported by If This Then That: Changes in the preceding block may need to be reflected in these files: /chrome/...

      Changes in the preceding block may need to be reflected in these files: /chrome/browser/contextual_tasks/constants.ts If this does not apply, add 'NO_IFTTT=some reason...' to your commit message

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Duncan Mercer
      • James Leung
      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: Id95752eb792f308bc159216b0d9a66d6c5f0578f
        Gerrit-Change-Number: 7396701
        Gerrit-PatchSet: 4
        Gerrit-Owner: James Leung <james...@google.com>
        Gerrit-Reviewer: Ananya Seelam <ananya...@google.com>
        Gerrit-Reviewer: Duncan Mercer <mer...@google.com>
        Gerrit-Reviewer: James Leung <james...@google.com>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-CC: Sophie Chang <sophi...@chromium.org>
        Gerrit-Attention: Duncan Mercer <mer...@google.com>
        Gerrit-Attention: James Leung <james...@google.com>
        Gerrit-Comment-Date: Wed, 07 Jan 2026 20:13:26 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        James Leung (Gerrit)

        unread,
        Jan 7, 2026, 3:31:42 PM (3 days ago) Jan 7
        to Chromium LUCI CQ, Ananya Seelam, Duncan Mercer, Chromium Metrics Reviews, chromium...@chromium.org, Sophie Chang, asvitkine...@chromium.org, oshima...@chromium.org
        Attention needed from Ananya Seelam and Duncan Mercer

        James Leung added 1 comment

        File tools/metrics/histograms/metadata/contextual_tasks/enums.xml
        Line 57, Patchset 4:<!-- LINT.ThenChange(//chrome/browser/contextual_tasks/constants.ts:VoiceSearchState) -->
        Ananya Seelam . resolved

        I would add the `NO_IFTTT=some reason...'` to your cl description you can say this is a false positive since VoiceSearchState name matches.


        Please fix this ERROR reported by If This Then That: Changes in the preceding block may need to be reflected in these files: /chrome/...

        Changes in the preceding block may need to be reflected in these files: /chrome/browser/contextual_tasks/constants.ts If this does not apply, add 'NO_IFTTT=some reason...' to your commit message

        James Leung

        Done

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Ananya Seelam
        • Duncan Mercer
        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: Id95752eb792f308bc159216b0d9a66d6c5f0578f
          Gerrit-Change-Number: 7396701
          Gerrit-PatchSet: 5
          Gerrit-Owner: James Leung <james...@google.com>
          Gerrit-Reviewer: Ananya Seelam <ananya...@google.com>
          Gerrit-Reviewer: Duncan Mercer <mer...@google.com>
          Gerrit-Reviewer: James Leung <james...@google.com>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-CC: Sophie Chang <sophi...@chromium.org>
          Gerrit-Attention: Ananya Seelam <ananya...@google.com>
          Gerrit-Attention: Duncan Mercer <mer...@google.com>
          Gerrit-Comment-Date: Wed, 07 Jan 2026 20:31:31 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Ananya Seelam <ananya...@google.com>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Ananya Seelam (Gerrit)

          unread,
          Jan 7, 2026, 5:05:11 PM (3 days ago) Jan 7
          to James Leung, Chromium LUCI CQ, Duncan Mercer, Chromium Metrics Reviews, chromium...@chromium.org, Sophie Chang, asvitkine...@chromium.org, oshima...@chromium.org
          Attention needed from Duncan Mercer and James Leung

          Ananya Seelam voted and added 1 comment

          Votes added by Ananya Seelam

          Code-Review+1

          1 comment

          Patchset-level comments
          File-level comment, Patchset 5 (Latest):
          Ananya Seelam . resolved

          lgtm!

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Duncan Mercer
          • James Leung
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement is not satisfiedCode-Owners
            • requirement is not 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: Id95752eb792f308bc159216b0d9a66d6c5f0578f
            Gerrit-Change-Number: 7396701
            Gerrit-PatchSet: 5
            Gerrit-Owner: James Leung <james...@google.com>
            Gerrit-Reviewer: Ananya Seelam <ananya...@google.com>
            Gerrit-Reviewer: Duncan Mercer <mer...@google.com>
            Gerrit-Reviewer: James Leung <james...@google.com>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-CC: Sophie Chang <sophi...@chromium.org>
            Gerrit-Attention: Duncan Mercer <mer...@google.com>
            Gerrit-Attention: James Leung <james...@google.com>
            Gerrit-Comment-Date: Wed, 07 Jan 2026 22:04:59 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Tommy Nyquist (Gerrit)

            unread,
            Jan 8, 2026, 7:45:07 PM (2 days ago) Jan 8
            to James Leung, Ananya Seelam, Chromium LUCI CQ, Duncan Mercer, Chromium Metrics Reviews, chromium...@chromium.org, Sophie Chang, asvitkine...@chromium.org, oshima...@chromium.org
            Attention needed from Ananya Seelam, Duncan Mercer and James Leung

            Tommy Nyquist added 3 comments

            File chrome/browser/resources/contextual_tasks/constants.ts
            Line 9, Patchset 8 (Latest): SUCCESFUL_TRANSCRIPT = 1,
            Tommy Nyquist . unresolved

            I think you want `SUCCESSFUL_TRANSCRIPT` here, not `SUCCESFUL_TRANSCRIPT` (and remember to update uses in case that doesn't fail compile automatically).

            File chrome/test/data/webui/contextual_tasks/composebox_test.ts
            Line 1182, Patchset 8 (Latest): test('on focus out sets animation state as none otherwise', async () => {
            Tommy Nyquist . unresolved

            Nit: `otherwise`.

            File ui/webui/resources/cr_components/composebox/composebox_voice_search.ts
            Line 246, Patchset 8 (Latest): this.fire('voice-search-cancel', /*canceled-by-user=*/ false);
            Tommy Nyquist . unresolved

            Why do we emit both `-cancel` and `-error` again? Is it because `cancel` closes the modal, and `error` handles the logging?

            Could we maybe update the comment above to say that "we therefore emit `voice-search-cancel` before the `voice-search-error`" or something along those lines if that's why we fire an event twice? The comments surrounding this seem to focus on whether metrics are recorded or not, which makes sense in line of the current CL, but for future readers I don't necessarily think they tell the whole story.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Ananya Seelam
            • Duncan Mercer
            • James Leung
            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: Id95752eb792f308bc159216b0d9a66d6c5f0578f
              Gerrit-Change-Number: 7396701
              Gerrit-PatchSet: 8
              Gerrit-Owner: James Leung <james...@google.com>
              Gerrit-Reviewer: Ananya Seelam <ananya...@google.com>
              Gerrit-Reviewer: Duncan Mercer <mer...@google.com>
              Gerrit-Reviewer: James Leung <james...@google.com>
              Gerrit-Reviewer: Tommy Nyquist <nyq...@chromium.org>
              Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
              Gerrit-CC: Sophie Chang <sophi...@chromium.org>
              Gerrit-Attention: Ananya Seelam <ananya...@google.com>
              Gerrit-Attention: Duncan Mercer <mer...@google.com>
              Gerrit-Attention: James Leung <james...@google.com>
              Gerrit-Comment-Date: Fri, 09 Jan 2026 00:44:57 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              James Leung (Gerrit)

              unread,
              Jan 9, 2026, 10:42:44 PM (18 hours ago) Jan 9
              to Tommy Nyquist, Ananya Seelam, Chromium LUCI CQ, Duncan Mercer, Chromium Metrics Reviews, chromium...@chromium.org, Sophie Chang, asvitkine...@chromium.org, oshima...@chromium.org
              Attention needed from Ananya Seelam and Tommy Nyquist

              James Leung added 3 comments

              File chrome/browser/resources/contextual_tasks/constants.ts
              Line 9, Patchset 8 (Latest): SUCCESFUL_TRANSCRIPT = 1,
              Tommy Nyquist . resolved

              I think you want `SUCCESSFUL_TRANSCRIPT` here, not `SUCCESFUL_TRANSCRIPT` (and remember to update uses in case that doesn't fail compile automatically).

              James Leung

              Done

              File chrome/test/data/webui/contextual_tasks/composebox_test.ts
              Line 1182, Patchset 8 (Latest): test('on focus out sets animation state as none otherwise', async () => {
              Tommy Nyquist . resolved

              Nit: `otherwise`.

              James Leung

              Done

              File ui/webui/resources/cr_components/composebox/composebox_voice_search.ts
              Line 246, Patchset 8 (Latest): this.fire('voice-search-cancel', /*canceled-by-user=*/ false);
              Tommy Nyquist . resolved

              Why do we emit both `-cancel` and `-error` again? Is it because `cancel` closes the modal, and `error` handles the logging?

              Could we maybe update the comment above to say that "we therefore emit `voice-search-cancel` before the `voice-search-error`" or something along those lines if that's why we fire an event twice? The comments surrounding this seem to focus on whether metrics are recorded or not, which makes sense in line of the current CL, but for future readers I don't necessarily think they tell the whole story.

              James Leung

              yes, cancel is an event that was previously here that closes voice search

              done.

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Ananya Seelam
              • Tommy Nyquist
              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: Id95752eb792f308bc159216b0d9a66d6c5f0578f
                Gerrit-Change-Number: 7396701
                Gerrit-PatchSet: 8
                Gerrit-Owner: James Leung <james...@google.com>
                Gerrit-Reviewer: Ananya Seelam <ananya...@google.com>
                Gerrit-Reviewer: Duncan Mercer <mer...@google.com>
                Gerrit-Reviewer: James Leung <james...@google.com>
                Gerrit-Reviewer: Tommy Nyquist <nyq...@chromium.org>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-CC: Sophie Chang <sophi...@chromium.org>
                Gerrit-Attention: Ananya Seelam <ananya...@google.com>
                Gerrit-Attention: Tommy Nyquist <nyq...@chromium.org>
                Gerrit-Comment-Date: Sat, 10 Jan 2026 03:42:32 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                Comment-In-Reply-To: Tommy Nyquist <nyq...@chromium.org>
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy
                Reply all
                Reply to author
                Forward
                0 new messages