Audio: Separate E_ACCESSDENIED from WASAPI input initialization metrics [chromium/src : main]

0 views
Skip to first unread message

Henrik Andreasson (Gerrit)

unread,
May 15, 2026, 10:09:14 AM (3 days ago) May 15
to Tomas Gunnarsson, Johannes Kron, Olga Sharonova, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
Attention needed from Johannes Kron and Olga Sharonova

Henrik Andreasson removed Tomas Gunnarsson from this change

Deleted Reviewers:
  • Tomas Gunnarsson
Open in Gerrit

Related details

Attention is currently required from:
  • Johannes Kron
  • Olga Sharonova
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: deleteReviewer
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3509a12bb41f84b08f41e22c02996348442c1dcb
Gerrit-Change-Number: 7852378
Gerrit-PatchSet: 4
Gerrit-Owner: Henrik Andreasson <hen...@chromium.org>
Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
Gerrit-Attention: Johannes Kron <kr...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Henrik Andreasson (Gerrit)

unread,
May 15, 2026, 10:14:58 AM (3 days ago) May 15
to Chromium LUCI CQ, Johannes Kron, Olga Sharonova, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
Attention needed from Johannes Kron and Olga Sharonova

Henrik Andreasson added 1 comment

File tools/metrics/histograms/metadata/media/histograms.xml
Line 1482, Patchset 4 (Latest):<histogram name="Media.Audio.Capture.Win.SystemPermissionDenied" enum="Boolean"
Henrik Andreasson . unresolved

NIT: Since `E_ACCESSDENIED` is no longer logged in `Media.Audio.Capture.Win.InitError` and `Media.Audio.Capture.Win.ProcessLoopbackInitError`, consider updating the summaries of those two histograms to mention that `E_ACCESSDENIED` is intentionally excluded and is tracked by this histogram instead.

Open in Gerrit

Related details

Attention is currently required from:
  • Johannes Kron
  • Olga Sharonova
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: I3509a12bb41f84b08f41e22c02996348442c1dcb
    Gerrit-Change-Number: 7852378
    Gerrit-PatchSet: 4
    Gerrit-Owner: Henrik Andreasson <hen...@chromium.org>
    Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
    Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
    Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
    Gerrit-Attention: Johannes Kron <kr...@chromium.org>
    Gerrit-Comment-Date: Fri, 15 May 2026 14:14:45 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Henrik Andreasson (Gerrit)

    unread,
    May 15, 2026, 10:15:19 AM (3 days ago) May 15
    to Chromium LUCI CQ, Johannes Kron, Olga Sharonova, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
    Attention needed from Johannes Kron and Olga Sharonova

    Henrik Andreasson added 1 comment

    File tools/metrics/histograms/metadata/media/histograms.xml
    Line 1482, Patchset 4 (Latest):<histogram name="Media.Audio.Capture.Win.SystemPermissionDenied" enum="Boolean"
    Henrik Andreasson . resolved

    NIT: Since `E_ACCESSDENIED` is no longer logged in `Media.Audio.Capture.Win.InitError` and `Media.Audio.Capture.Win.ProcessLoopbackInitError`, consider updating the summaries of those two histograms to mention that `E_ACCESSDENIED` is intentionally excluded and is tracked by this histogram instead.

    Henrik Andreasson

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Johannes Kron
    • Olga Sharonova
    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: I3509a12bb41f84b08f41e22c02996348442c1dcb
      Gerrit-Change-Number: 7852378
      Gerrit-PatchSet: 4
      Gerrit-Owner: Henrik Andreasson <hen...@chromium.org>
      Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
      Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
      Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
      Gerrit-Attention: Johannes Kron <kr...@chromium.org>
      Gerrit-Comment-Date: Fri, 15 May 2026 14:15:07 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Henrik Andreasson <hen...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Tomas Gunnarsson (Gerrit)

      unread,
      May 15, 2026, 3:34:18 PM (3 days ago) May 15
      to Henrik Andreasson, Chromium LUCI CQ, Johannes Kron, Olga Sharonova, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
      Attention needed from Henrik Andreasson, Johannes Kron and Olga Sharonova

      Tomas Gunnarsson voted and added 2 comments

      Votes added by Tomas Gunnarsson

      Code-Review+1

      2 comments

      File media/audio/win/audio_low_latency_input_win.cc
      Line 2052, Patchset 5 (Latest): hr == E_ACCESSDENIED);
      Tomas Gunnarsson . unresolved

      is there a way to know if IAudioClient::Initialize failed because of permission errors (e.g. privacy settings) or if it could be is because exclusive access is held by another application? Does chromium use `AUDCLNT_SHAREMODE_EXCLUSIVE` in some configurations? (just wondering if there might e.g. be a conflict if someone is using both canary and stable versions of chrome).

      File tools/metrics/histograms/metadata/media/histograms.xml
      Line 1493, Patchset 5 (Latest): audio capture was blocked by system permissions. Logged once per
      Tomas Gunnarsson . resolved

      it would be good to be 100% sure that it's related to system permissions or privacy settings and not a conflict due to exclusive mode.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Henrik Andreasson
      • Johannes Kron
      • Olga Sharonova
      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: I3509a12bb41f84b08f41e22c02996348442c1dcb
        Gerrit-Change-Number: 7852378
        Gerrit-PatchSet: 5
        Gerrit-Owner: Henrik Andreasson <hen...@chromium.org>
        Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
        Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
        Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
        Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
        Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
        Gerrit-Attention: Johannes Kron <kr...@chromium.org>
        Gerrit-Comment-Date: Fri, 15 May 2026 19:33:55 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Henrik Andreasson (Gerrit)

        unread,
        3:39 AM (11 hours ago) 3:39 AM
        to Tomas Gunnarsson, Chromium LUCI CQ, Johannes Kron, Olga Sharonova, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
        Attention needed from Johannes Kron and Olga Sharonova

        Henrik Andreasson added 1 comment

        File tools/metrics/histograms/metadata/media/histograms.xml
        Line 1493, Patchset 5 (Latest): audio capture was blocked by system permissions. Logged once per
        Tomas Gunnarsson . resolved

        it would be good to be 100% sure that it's related to system permissions or privacy settings and not a conflict due to exclusive mode.

        Henrik Andreasson

        We know that for sure. I have written a native command-line utility [1] which allows me to create a conflict where an external application has opened the capture side in exclusive mode to see the effect.

        The error we then get is AUDCLNT_E_DEVICE_IN_USE (0x88890010) and not E_ACCESSDENIED (0x80070005).

        I have only been able to provoke E_ACCESSDENIED when I have explicitly disabled microphone access in Settings.

        [1] https://github.com/henrik-and/my-windows-samples/blob/main/exclusive-audio/README.md

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Johannes Kron
        • Olga Sharonova
        Gerrit-Attention: Johannes Kron <kr...@chromium.org>
        Gerrit-Comment-Date: Mon, 18 May 2026 07:39:13 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Tomas Gunnarsson <to...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Henrik Andreasson (Gerrit)

        unread,
        4:05 AM (11 hours ago) 4:05 AM
        to Tomas Gunnarsson, Chromium LUCI CQ, Johannes Kron, Olga Sharonova, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
        Attention needed from Johannes Kron and Olga Sharonova

        Henrik Andreasson added 1 comment

        File media/audio/win/audio_low_latency_input_win.cc
        Line 2052, Patchset 5 (Latest): hr == E_ACCESSDENIED);
        Tomas Gunnarsson . resolved

        is there a way to know if IAudioClient::Initialize failed because of permission errors (e.g. privacy settings) or if it could be is because exclusive access is held by another application? Does chromium use `AUDCLNT_SHAREMODE_EXCLUSIVE` in some configurations? (just wondering if there might e.g. be a conflict if someone is using both canary and stable versions of chrome).

        Henrik Andreasson

        We only support exclusive mode on the output side in Chrome, and it is behind a command-line flag (`switches::kEnableExclusiveAudio`). Hence, internal conflicts (Stable/Canary) should be very rare.

        For potential conflicts with other applications, see my other comment in: https://chromium-review.git.corp.google.com/c/chromium/src/+/7852378/comment/2000bfd1_34ce2ada/ for more details.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Johannes Kron
        • Olga Sharonova
        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: I3509a12bb41f84b08f41e22c02996348442c1dcb
          Gerrit-Change-Number: 7852378
          Gerrit-PatchSet: 5
          Gerrit-Owner: Henrik Andreasson <hen...@chromium.org>
          Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
          Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
          Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
          Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
          Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
          Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
          Gerrit-Attention: Johannes Kron <kr...@chromium.org>
          Gerrit-Comment-Date: Mon, 18 May 2026 08:05:40 +0000
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Johannes Kron (Gerrit)

          unread,
          4:14 AM (10 hours ago) 4:14 AM
          to Henrik Andreasson, Tomas Gunnarsson, Chromium LUCI CQ, Olga Sharonova, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
          Attention needed from Henrik Andreasson and Olga Sharonova

          Johannes Kron added 1 comment

          File media/audio/win/audio_low_latency_input_win.cc
          Line 2060, Patchset 5 (Latest): base::UmaHistogramSparse("Media.Audio.Capture.Win.InitError", hr);
          if (is_process_loopback_capture_) {
          base::UmaHistogramSparse(
          "Media.Audio.Capture.Win.ProcessLoopbackInitError", hr);
          }
          Johannes Kron . unresolved

          Since the scope of these histograms is changing, their names must also be updated. The suggested naming pattern is to append "2" to the existing names [\[1\]](https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md#revising).

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Henrik Andreasson
          • Olga Sharonova
          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: I3509a12bb41f84b08f41e22c02996348442c1dcb
            Gerrit-Change-Number: 7852378
            Gerrit-PatchSet: 5
            Gerrit-Owner: Henrik Andreasson <hen...@chromium.org>
            Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
            Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
            Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
            Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
            Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
            Gerrit-Comment-Date: Mon, 18 May 2026 08:14:10 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Henrik Andreasson (Gerrit)

            unread,
            4:21 AM (10 hours ago) 4:21 AM
            to Tomas Gunnarsson, Chromium LUCI CQ, Johannes Kron, Olga Sharonova, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
            Attention needed from Johannes Kron and Olga Sharonova

            Henrik Andreasson added 1 comment

            File media/audio/win/audio_low_latency_input_win.cc
            Line 2060, Patchset 5 (Latest): base::UmaHistogramSparse("Media.Audio.Capture.Win.InitError", hr);
            if (is_process_loopback_capture_) {
            base::UmaHistogramSparse(
            "Media.Audio.Capture.Win.ProcessLoopbackInitError", hr);
            }
            Johannes Kron . unresolved

            Since the scope of these histograms is changing, their names must also be updated. The suggested naming pattern is to append "2" to the existing names [\[1\]](https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md#revising).

            Henrik Andreasson

            It is still a representation of initializing errors (as before). The only change is that I break out one particular enum which is not a "true error" since it depends on a user setting and the outcome is known in advance.

            IMO, this change is mainly a fix to ensure that the original UMA represents what it was intended for.

            I do also break out this single enum into a new histogram with a unique name.

            Just feels a bit odd to rename under these conditions.

            WDYT?

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Johannes Kron
            • Olga Sharonova
            Gerrit-Attention: Johannes Kron <kr...@chromium.org>
            Gerrit-Comment-Date: Mon, 18 May 2026 08:20:52 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Johannes Kron <kr...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Henrik Andreasson (Gerrit)

            unread,
            4:22 AM (10 hours ago) 4:22 AM
            to Tomas Gunnarsson, Chromium LUCI CQ, Johannes Kron, Olga Sharonova, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
            Attention needed from Johannes Kron and Olga Sharonova

            Henrik Andreasson added 1 comment

            File media/audio/win/audio_low_latency_input_win.cc
            Line 2060, Patchset 5 (Latest): base::UmaHistogramSparse("Media.Audio.Capture.Win.InitError", hr);
            if (is_process_loopback_capture_) {
            base::UmaHistogramSparse(
            "Media.Audio.Capture.Win.ProcessLoopbackInitError", hr);
            }
            Johannes Kron . unresolved

            Since the scope of these histograms is changing, their names must also be updated. The suggested naming pattern is to append "2" to the existing names [\[1\]](https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md#revising).

            Henrik Andreasson

            It is still a representation of initializing errors (as before). The only change is that I break out one particular enum which is not a "true error" since it depends on a user setting and the outcome is known in advance.

            IMO, this change is mainly a fix to ensure that the original UMA represents what it was intended for.

            I do also break out this single enum into a new histogram with a unique name.

            Just feels a bit odd to rename under these conditions.

            WDYT?

            Henrik Andreasson

            But yes, the new histogram will look very differently, I agree.

            Just wanted to check if you feel strongly that I should add a new histogram.

            Gerrit-Comment-Date: Mon, 18 May 2026 08:22:13 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Henrik Andreasson <hen...@chromium.org>
            Comment-In-Reply-To: Johannes Kron <kr...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Johannes Kron (Gerrit)

            unread,
            4:45 AM (10 hours ago) 4:45 AM
            to Henrik Andreasson, Tomas Gunnarsson, Chromium LUCI CQ, Olga Sharonova, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
            Attention needed from Henrik Andreasson and Olga Sharonova

            Johannes Kron added 1 comment

            File media/audio/win/audio_low_latency_input_win.cc
            Line 2060, Patchset 5 (Latest): base::UmaHistogramSparse("Media.Audio.Capture.Win.InitError", hr);
            if (is_process_loopback_capture_) {
            base::UmaHistogramSparse(
            "Media.Audio.Capture.Win.ProcessLoopbackInitError", hr);
            }
            Johannes Kron . unresolved

            Since the scope of these histograms is changing, their names must also be updated. The suggested naming pattern is to append "2" to the existing names [\[1\]](https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md#revising).

            Henrik Andreasson

            It is still a representation of initializing errors (as before). The only change is that I break out one particular enum which is not a "true error" since it depends on a user setting and the outcome is known in advance.

            IMO, this change is mainly a fix to ensure that the original UMA represents what it was intended for.

            I do also break out this single enum into a new histogram with a unique name.

            Just feels a bit odd to rename under these conditions.

            WDYT?

            Henrik Andreasson

            But yes, the new histogram will look very differently, I agree.

            Just wanted to check if you feel strongly that I should add a new histogram.

            Johannes Kron

            The reason to change the name to `Media.Audio.Capture.Win.InitError2` and `Media.Audio.Capture.Win.ProcessLoopbackInitError2` is simply to avoid comparing data between the two histograms and avoid misleading conclusions.

            See https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md#revising for more info.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Henrik Andreasson
            • Olga Sharonova
            Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
            Gerrit-Comment-Date: Mon, 18 May 2026 08:44:50 +0000
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Olga Sharonova (Gerrit)

            unread,
            5:14 AM (9 hours ago) 5:14 AM
            to Henrik Andreasson, Tomas Gunnarsson, Chromium LUCI CQ, Johannes Kron, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
            Attention needed from Henrik Andreasson

            Olga Sharonova added 1 comment

            File media/audio/win/audio_low_latency_input_win.cc
            Line 2060, Patchset 5 (Latest): base::UmaHistogramSparse("Media.Audio.Capture.Win.InitError", hr);
            if (is_process_loopback_capture_) {
            base::UmaHistogramSparse(
            "Media.Audio.Capture.Win.ProcessLoopbackInitError", hr);
            }
            Johannes Kron . unresolved

            Since the scope of these histograms is changing, their names must also be updated. The suggested naming pattern is to append "2" to the existing names [\[1\]](https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md#revising).

            Henrik Andreasson

            It is still a representation of initializing errors (as before). The only change is that I break out one particular enum which is not a "true error" since it depends on a user setting and the outcome is known in advance.

            IMO, this change is mainly a fix to ensure that the original UMA represents what it was intended for.

            I do also break out this single enum into a new histogram with a unique name.

            Just feels a bit odd to rename under these conditions.

            WDYT?

            Henrik Andreasson

            But yes, the new histogram will look very differently, I agree.

            Just wanted to check if you feel strongly that I should add a new histogram.

            Johannes Kron

            The reason to change the name to `Media.Audio.Capture.Win.InitError2` and `Media.Audio.Capture.Win.ProcessLoopbackInitError2` is simply to avoid comparing data between the two histograms and avoid misleading conclusions.

            See https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md#revising for more info.

            Olga Sharonova

            +1 we need a new version of the histogram. And Henrik has another CL which calls for a version change, so we should probably do it once.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Henrik Andreasson
            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: I3509a12bb41f84b08f41e22c02996348442c1dcb
            Gerrit-Change-Number: 7852378
            Gerrit-PatchSet: 5
            Gerrit-Owner: Henrik Andreasson <hen...@chromium.org>
            Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
            Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
            Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
            Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
            Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
            Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
            Gerrit-Comment-Date: Mon, 18 May 2026 09:14:02 +0000
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Henrik Andreasson (Gerrit)

            unread,
            5:28 AM (9 hours ago) 5:28 AM
            to Tomas Gunnarsson, Chromium LUCI CQ, Johannes Kron, Olga Sharonova, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
            Attention needed from Johannes Kron and Olga Sharonova

            Henrik Andreasson added 2 comments

            Patchset-level comments
            File-level comment, Patchset 7 (Latest):
            Henrik Andreasson . resolved

            Now changed names.

            PTAL

            File media/audio/win/audio_low_latency_input_win.cc
            Line 2060, Patchset 5: base::UmaHistogramSparse("Media.Audio.Capture.Win.InitError", hr);

            if (is_process_loopback_capture_) {
            base::UmaHistogramSparse(
            "Media.Audio.Capture.Win.ProcessLoopbackInitError", hr);
            }
            Johannes Kron . resolved

            Since the scope of these histograms is changing, their names must also be updated. The suggested naming pattern is to append "2" to the existing names [\[1\]](https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md#revising).

            Henrik Andreasson

            It is still a representation of initializing errors (as before). The only change is that I break out one particular enum which is not a "true error" since it depends on a user setting and the outcome is known in advance.

            IMO, this change is mainly a fix to ensure that the original UMA represents what it was intended for.

            I do also break out this single enum into a new histogram with a unique name.

            Just feels a bit odd to rename under these conditions.

            WDYT?

            Henrik Andreasson

            But yes, the new histogram will look very differently, I agree.

            Just wanted to check if you feel strongly that I should add a new histogram.

            Johannes Kron

            The reason to change the name to `Media.Audio.Capture.Win.InitError2` and `Media.Audio.Capture.Win.ProcessLoopbackInitError2` is simply to avoid comparing data between the two histograms and avoid misleading conclusions.

            See https://chromium.googlesource.com/chromium/src.git/+/HEAD/tools/metrics/histograms/README.md#revising for more info.

            Olga Sharonova

            +1 we need a new version of the histogram. And Henrik has another CL which calls for a version change, so we should probably do it once.

            Henrik Andreasson

            Done

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Johannes Kron
            • Olga Sharonova
            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: I3509a12bb41f84b08f41e22c02996348442c1dcb
              Gerrit-Change-Number: 7852378
              Gerrit-PatchSet: 7
              Gerrit-Owner: Henrik Andreasson <hen...@chromium.org>
              Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
              Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
              Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
              Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
              Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
              Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
              Gerrit-Attention: Johannes Kron <kr...@chromium.org>
              Gerrit-Comment-Date: Mon, 18 May 2026 09:27:54 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              Comment-In-Reply-To: Olga Sharonova <ol...@chromium.org>
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Johannes Kron (Gerrit)

              unread,
              5:38 AM (9 hours ago) 5:38 AM
              to Henrik Andreasson, Tomas Gunnarsson, Chromium LUCI CQ, Olga Sharonova, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
              Attention needed from Henrik Andreasson and Olga Sharonova

              Johannes Kron voted and added 1 comment

              Votes added by Johannes Kron

              Code-Review+1

              1 comment

              Patchset-level comments
              Johannes Kron . resolved

              LGTM! Thanks!

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Henrik Andreasson
              • Olga Sharonova
              Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement 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: I3509a12bb41f84b08f41e22c02996348442c1dcb
              Gerrit-Change-Number: 7852378
              Gerrit-PatchSet: 7
              Gerrit-Owner: Henrik Andreasson <hen...@chromium.org>
              Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
              Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
              Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
              Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
              Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
              Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
              Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
              Gerrit-Comment-Date: Mon, 18 May 2026 09:38:36 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              open
              diffy

              Henrik Andreasson (Gerrit)

              unread,
              5:41 AM (9 hours ago) 5:41 AM
              to Johannes Kron, Tomas Gunnarsson, Chromium LUCI CQ, Olga Sharonova, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
              Attention needed from Olga Sharonova

              Henrik Andreasson added 1 comment

              Patchset-level comments
              Henrik Andreasson . resolved

              Waiting for final OK from olka@ as well just in case.

              PTAL

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Olga Sharonova
              Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement 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: I3509a12bb41f84b08f41e22c02996348442c1dcb
              Gerrit-Change-Number: 7852378
              Gerrit-PatchSet: 7
              Gerrit-Owner: Henrik Andreasson <hen...@chromium.org>
              Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
              Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
              Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
              Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
              Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
              Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
              Gerrit-Comment-Date: Mon, 18 May 2026 09:41:13 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              satisfied_requirement
              open
              diffy

              Olga Sharonova (Gerrit)

              unread,
              7:23 AM (7 hours ago) 7:23 AM
              to Henrik Andreasson, Johannes Kron, Tomas Gunnarsson, Chromium LUCI CQ, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org
              Attention needed from Henrik Andreasson

              Olga Sharonova voted and added 2 comments

              Votes added by Olga Sharonova

              Code-Review+1

              2 comments

              File tools/metrics/histograms/metadata/media/histograms.xml
              Line 1449, Patchset 7 (Latest): <owner>ol...@chromium.org</owner>
              Olga Sharonova . unresolved

              Please put yourself as the first contact 😊

              Line 1485, Patchset 7 (Latest):<histogram name="Media.Audio.Capture.Win.SystemPermissionDenied" enum="Boolean"
              Olga Sharonova . unresolved

              Should it be Media.Audio.Capture.Win.InitError.SystemPermissionDenied? (similarly, we already have Media.Audio.Capture.Win.InitError.FormatRelated)

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Henrik Andreasson
              Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement 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: I3509a12bb41f84b08f41e22c02996348442c1dcb
                Gerrit-Change-Number: 7852378
                Gerrit-PatchSet: 7
                Gerrit-Owner: Henrik Andreasson <hen...@chromium.org>
                Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
                Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
                Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
                Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
                Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
                Gerrit-Comment-Date: Mon, 18 May 2026 11:23:28 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Henrik Andreasson (Gerrit)

                unread,
                7:33 AM (7 hours ago) 7:33 AM
                to Olga Sharonova, Johannes Kron, Tomas Gunnarsson, Chromium LUCI CQ, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org

                Henrik Andreasson added 3 comments

                Patchset-level comments
                File-level comment, Patchset 7:
                Henrik Andreasson . resolved

                Done. Thanks!

                File tools/metrics/histograms/metadata/media/histograms.xml
                Line 1449, Patchset 7: <owner>ol...@chromium.org</owner>
                Olga Sharonova . resolved

                Please put yourself as the first contact 😊

                Henrik Andreasson

                Of course :-)

                Line 1485, Patchset 7:<histogram name="Media.Audio.Capture.Win.SystemPermissionDenied" enum="Boolean"
                Olga Sharonova . resolved

                Should it be Media.Audio.Capture.Win.InitError.SystemPermissionDenied? (similarly, we already have Media.Audio.Capture.Win.InitError.FormatRelated)

                Henrik Andreasson

                Yes, I agree. Good catch. Will update.

                Open in Gerrit

                Related details

                Attention set is empty
                Submit Requirements:
                  • requirement satisfiedCode-Coverage
                  • requirement 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: I3509a12bb41f84b08f41e22c02996348442c1dcb
                  Gerrit-Change-Number: 7852378
                  Gerrit-PatchSet: 7
                  Gerrit-Owner: Henrik Andreasson <hen...@chromium.org>
                  Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
                  Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
                  Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
                  Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
                  Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                  Gerrit-Comment-Date: Mon, 18 May 2026 11:33:08 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: No
                  Comment-In-Reply-To: Olga Sharonova <ol...@chromium.org>
                  satisfied_requirement
                  open
                  diffy

                  Henrik Andreasson (Gerrit)

                  unread,
                  7:33 AM (7 hours ago) 7:33 AM
                  to Olga Sharonova, Johannes Kron, Tomas Gunnarsson, Chromium LUCI CQ, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org

                  Henrik Andreasson voted Commit-Queue+2

                  Commit-Queue+2
                  Open in Gerrit

                  Related details

                  Attention set is empty
                  Submit Requirements:
                  • requirement satisfiedCode-Coverage
                  • requirement 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: I3509a12bb41f84b08f41e22c02996348442c1dcb
                  Gerrit-Change-Number: 7852378
                  Gerrit-PatchSet: 8
                  Gerrit-Owner: Henrik Andreasson <hen...@chromium.org>
                  Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
                  Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
                  Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
                  Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
                  Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
                  Gerrit-Comment-Date: Mon, 18 May 2026 11:33:35 +0000
                  Gerrit-HasComments: No
                  Gerrit-Has-Labels: Yes
                  satisfied_requirement
                  open
                  diffy

                  Chromium LUCI CQ (Gerrit)

                  unread,
                  8:28 AM (6 hours ago) 8:28 AM
                  to Henrik Andreasson, Olga Sharonova, Johannes Kron, Tomas Gunnarsson, Chromium Metrics Reviews, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, asvitkine...@chromium.org, feature-me...@chromium.org

                  Chromium LUCI CQ submitted the change with unreviewed changes

                  Unreviewed changes

                  7 is the latest approved patch-set.
                  The change was submitted with unreviewed changes in the following files:

                  ```
                  The name of the file: media/audio/win/audio_low_latency_input_win.cc
                  Insertions: 3, Deletions: 2.

                  The diff is too large to show. Please review the diff.
                  ```
                  ```
                  The name of the file: tools/metrics/histograms/metadata/media/histograms.xml
                  Insertions: 14, Deletions: 13.

                  The diff is too large to show. Please review the diff.
                  ```

                  Change information

                  Commit message:
                  Audio: Separate E_ACCESSDENIED from WASAPI input initialization metrics

                  This CL prevents expected OS-level microphone permission blocks
                  (E_ACCESSDENIED) from polluting the Windows audio input hardware failure
                  metrics.

                  Currently, E_ACCESSDENIED accounts for over 80% of the errors in
                  Media.Audio.Capture.Win.InitError. This noise masks genuine technical
                  regressions, such as crashed audio services or unsupported formats.

                  Specific changes in audio_low_latency_input_win.cc:
                  * Adds a new boolean histogram, Media.Audio.Capture.Win.SystemPermissionDenied,
                  to cleanly track the distribution of OS permission blocks across
                  all initialization attempts.
                  * Wraps the InitError and ProcessLoopbackInitError sparse histograms
                  in an `if (hr != E_ACCESSDENIED)` condition to filter out the noise.
                  * Leaves the actual return value and error propagation untouched,
                  ensuring no functional change for web clients.

                  OBSOLETE_HISTOGRAMS=Replaced by Media.Audio.Capture.Win.InitError2 and
                  Media.Audio.Capture.Win.ProcessLoopbackInitError2 because E_ACCESSDENIED
                  was filtered out.
                  Bug: 513538179
                  Change-Id: I3509a12bb41f84b08f41e22c02996348442c1dcb
                  Commit-Queue: Henrik Andreasson <hen...@chromium.org>
                  Reviewed-by: Johannes Kron <kr...@chromium.org>
                  Reviewed-by: Olga Sharonova <ol...@chromium.org>
                  Reviewed-by: Tomas Gunnarsson <to...@chromium.org>
                  Cr-Commit-Position: refs/heads/main@{#1632096}
                  Files:
                  • M media/audio/win/audio_low_latency_input_win.cc
                  • M tools/metrics/histograms/metadata/media/histograms.xml
                  Change size: M
                  Delta: 2 files changed, 42 insertions(+), 19 deletions(-)
                  Branch: refs/heads/main
                  Submit Requirements:
                  • requirement satisfiedCode-Review: +1 by Johannes Kron, +1 by Tomas Gunnarsson, +1 by Olga Sharonova
                  Open in Gerrit
                  Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                  Gerrit-MessageType: merged
                  Gerrit-Project: chromium/src
                  Gerrit-Branch: main
                  Gerrit-Change-Id: I3509a12bb41f84b08f41e22c02996348442c1dcb
                  Gerrit-Change-Number: 7852378
                  Gerrit-PatchSet: 9
                  Gerrit-Owner: Henrik Andreasson <hen...@chromium.org>
                  Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                  Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
                  Gerrit-Reviewer: Johannes Kron <kr...@chromium.org>
                  Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
                  Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
                  open
                  diffy
                  satisfied_requirement
                  Reply all
                  Reply to author
                  Forward
                  0 new messages