Add IsApplicationLoopbackCaptureSupported helper function. [chromium/src : main]

0 views
Skip to first unread message

Olov Brändström (Gerrit)

unread,
Jan 15, 2026, 9:47:30 AM (4 days ago) Jan 15
to Henrik Andreasson, Olga Sharonova, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
Attention needed from Henrik Andreasson and Olga Sharonova

Olov Brändström voted Commit-Queue+1

Commit-Queue+1
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 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: Ie7e82044a353905659eadae81f44544f67c36e9a
Gerrit-Change-Number: 7485626
Gerrit-PatchSet: 3
Gerrit-Owner: Olov Brändström <brand...@chromium.org>
Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
Gerrit-Reviewer: Olov Brändström <brand...@chromium.org>
Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
Gerrit-Comment-Date: Thu, 15 Jan 2026 14:47:18 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Henrik Andreasson (Gerrit)

unread,
Jan 15, 2026, 9:54:12 AM (4 days ago) Jan 15
to Olov Brändström, Olga Sharonova, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
Attention needed from Olga Sharonova and Olov Brändström

Henrik Andreasson added 1 comment

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

Is it correct that we do the same today for Windows as is stated in the title?

On Windows, this function checks if the OS is Windows 11 or newer,
aligning the logic with `IsRestrictOwnAudioSupported()`.

Open in Gerrit

Related details

Attention is currently required from:
  • Olga Sharonova
  • Olov Brändström
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: Ie7e82044a353905659eadae81f44544f67c36e9a
Gerrit-Change-Number: 7485626
Gerrit-PatchSet: 3
Gerrit-Owner: Olov Brändström <brand...@chromium.org>
Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
Gerrit-Reviewer: Olov Brändström <brand...@chromium.org>
Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
Gerrit-Attention: Olov Brändström <brand...@chromium.org>
Gerrit-Comment-Date: Thu, 15 Jan 2026 14:53:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Olov Brändström (Gerrit)

unread,
Jan 15, 2026, 10:27:36 AM (4 days ago) Jan 15
to Henrik Andreasson, Olga Sharonova, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
Attention needed from Henrik Andreasson and Olga Sharonova

Olov Brändström added 1 comment

Patchset-level comments
Henrik Andreasson . resolved

Is it correct that we do the same today for Windows as is stated in the title?

On Windows, this function checks if the OS is Windows 11 or newer,
aligning the logic with `IsRestrictOwnAudioSupported()`.

Olov Brändström

I rewrote the last part of the CL description.

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 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: Ie7e82044a353905659eadae81f44544f67c36e9a
Gerrit-Change-Number: 7485626
Gerrit-PatchSet: 4
Gerrit-Owner: Olov Brändström <brand...@chromium.org>
Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
Gerrit-Reviewer: Olov Brändström <brand...@chromium.org>
Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
Gerrit-Comment-Date: Thu, 15 Jan 2026 15:27:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Henrik Andreasson <hen...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Henrik Andreasson (Gerrit)

unread,
Jan 15, 2026, 10:31:47 AM (4 days ago) Jan 15
to Olov Brändström, Olga Sharonova, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
Attention needed from Olga Sharonova and Olov Brändström

Henrik Andreasson voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Olga Sharonova
  • Olov Brändström
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: Ie7e82044a353905659eadae81f44544f67c36e9a
Gerrit-Change-Number: 7485626
Gerrit-PatchSet: 4
Gerrit-Owner: Olov Brändström <brand...@chromium.org>
Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
Gerrit-Reviewer: Olov Brändström <brand...@chromium.org>
Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
Gerrit-Attention: Olov Brändström <brand...@chromium.org>
Gerrit-Comment-Date: Thu, 15 Jan 2026 15:31:29 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Olga Sharonova (Gerrit)

unread,
Jan 16, 2026, 11:02:41 AM (3 days ago) Jan 16
to Olov Brändström, Henrik Andreasson, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
Attention needed from Olov Brändström

Olga Sharonova added 1 comment

File media/audio/audio_features.cc
Line 96, Patchset 4 (Latest):bool IsApplicationAudioCaptureSupported() {
Olga Sharonova . unresolved

Can we move everything to media_switches? It does not seem there are any benefits in splitting logic between two places

Open in Gerrit

Related details

Attention is currently required from:
  • Olov Brändström
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: Ie7e82044a353905659eadae81f44544f67c36e9a
    Gerrit-Change-Number: 7485626
    Gerrit-PatchSet: 4
    Gerrit-Owner: Olov Brändström <brand...@chromium.org>
    Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
    Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
    Gerrit-Reviewer: Olov Brändström <brand...@chromium.org>
    Gerrit-Attention: Olov Brändström <brand...@chromium.org>
    Gerrit-Comment-Date: Fri, 16 Jan 2026 16:02:19 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Olov Brändström (Gerrit)

    unread,
    7:26 AM (12 hours ago) 7:26 AM
    to Henrik Andreasson, Olga Sharonova, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
    Attention needed from Henrik Andreasson and Olga Sharonova

    Olov Brändström added 1 comment

    File media/audio/audio_features.cc
    Line 96, Patchset 4:bool IsApplicationAudioCaptureSupported() {
    Olga Sharonova . resolved

    Can we move everything to media_switches? It does not seem there are any benefits in splitting logic between two places

    Olov Brändström

    I've moved the feature flags to media_switches, to be able to move all logic there.

    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 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: Ie7e82044a353905659eadae81f44544f67c36e9a
    Gerrit-Change-Number: 7485626
    Gerrit-PatchSet: 6
    Gerrit-Owner: Olov Brändström <brand...@chromium.org>
    Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
    Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
    Gerrit-Reviewer: Olov Brändström <brand...@chromium.org>
    Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
    Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
    Gerrit-Comment-Date: Mon, 19 Jan 2026 12:26:39 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Olga Sharonova <ol...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Olov Brändström (Gerrit)

    unread,
    8:05 AM (12 hours ago) 8:05 AM
    to Tove Petersson, Henrik Andreasson, Olga Sharonova, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
    Attention needed from Henrik Andreasson, Olga Sharonova and Tove Petersson

    Olov Brändström added 1 comment

    Patchset-level comments
    File-level comment, Patchset 6 (Latest):
    Olov Brändström . resolved

    Hi @to...@chromium.org. I added you as a reviewer since I need an owner of desktop_media_picker_views.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Henrik Andreasson
    • Olga Sharonova
    • Tove Petersson
    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: Ie7e82044a353905659eadae81f44544f67c36e9a
    Gerrit-Change-Number: 7485626
    Gerrit-PatchSet: 6
    Gerrit-Owner: Olov Brändström <brand...@chromium.org>
    Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
    Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
    Gerrit-Reviewer: Olov Brändström <brand...@chromium.org>
    Gerrit-Reviewer: Tove Petersson <to...@chromium.org>
    Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
    Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
    Gerrit-Attention: Tove Petersson <to...@chromium.org>
    Gerrit-Comment-Date: Mon, 19 Jan 2026 13:05:05 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Tove Petersson (Gerrit)

    unread,
    9:48 AM (10 hours ago) 9:48 AM
    to Olov Brändström, Henrik Andreasson, Olga Sharonova, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
    Attention needed from Henrik Andreasson, Olga Sharonova and Olov Brändström

    Tove Petersson added 2 comments

    File media/base/media_switches.cc
    Line 1634, Patchset 6 (Latest): base::win::GetVersion() >= base::win::Version::WIN11;
    Tove Petersson . unresolved

    Should this really be checked as part of the feature test.

    When cleaning up these feature flags, I assume that this test will be done in the implementation files. Can it be done there already? Or is it part of the rollout to start on Win11 and later expand to other Windows versions?

    Line 1634, Patchset 6 (Latest): base::win::GetVersion() >= base::win::Version::WIN11;
    Tove Petersson . unresolved

    Can you add a comment about why it is disabled on Windows 10? From what I gather, application audio is supported on at least some versions of Windows 10?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Henrik Andreasson
    • Olga Sharonova
    • Olov Brändström
    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: Ie7e82044a353905659eadae81f44544f67c36e9a
      Gerrit-Change-Number: 7485626
      Gerrit-PatchSet: 6
      Gerrit-Owner: Olov Brändström <brand...@chromium.org>
      Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
      Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
      Gerrit-Reviewer: Olov Brändström <brand...@chromium.org>
      Gerrit-Reviewer: Tove Petersson <to...@chromium.org>
      Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
      Gerrit-Attention: Olov Brändström <brand...@chromium.org>
      Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
      Gerrit-Comment-Date: Mon, 19 Jan 2026 14:48:44 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Olov Brändström (Gerrit)

      unread,
      10:32 AM (9 hours ago) 10:32 AM
      to Tove Petersson, Henrik Andreasson, Olga Sharonova, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
      Attention needed from Henrik Andreasson, Olga Sharonova and Tove Petersson

      Olov Brändström added 2 comments

      File media/base/media_switches.cc
      Line 1634, Patchset 6 (Latest): base::win::GetVersion() >= base::win::Version::WIN11;
      Tove Petersson . resolved

      Should this really be checked as part of the feature test.

      When cleaning up these feature flags, I assume that this test will be done in the implementation files. Can it be done there already? Or is it part of the rollout to start on Win11 and later expand to other Windows versions?

      Olov Brändström

      I followed the style of the existing functions, e.g. `IsMacCatapSystemLoopbackCaptureSupported()` and`IsWindowsProcessLoopbackCaptureSupported()`.

      Line 1634, Patchset 6 (Latest): base::win::GetVersion() >= base::win::Version::WIN11;
      Tove Petersson . resolved

      Can you add a comment about why it is disabled on Windows 10? From what I gather, application audio is supported on at least some versions of Windows 10?

      Olov Brändström

      This uses the same API as RestrictOwnAudio. `IsRestrictOwnAudioSupported()` checks for windows 11, so it should be the same for application audio capture. I'm not the expert, so if you want a better answer I could dig for it, but the reason we just enable for win11 is that we can't see if the user uses a win10 that support this API or not.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Henrik Andreasson
      • Olga Sharonova
      • Tove Petersson
      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: Ie7e82044a353905659eadae81f44544f67c36e9a
        Gerrit-Change-Number: 7485626
        Gerrit-PatchSet: 6
        Gerrit-Owner: Olov Brändström <brand...@chromium.org>
        Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
        Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
        Gerrit-Reviewer: Olov Brändström <brand...@chromium.org>
        Gerrit-Reviewer: Tove Petersson <to...@chromium.org>
        Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
        Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
        Gerrit-Attention: Tove Petersson <to...@chromium.org>
        Gerrit-Comment-Date: Mon, 19 Jan 2026 15:32:30 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Tove Petersson <to...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Tove Petersson (Gerrit)

        unread,
        10:43 AM (9 hours ago) 10:43 AM
        to Olov Brändström, Henrik Andreasson, Olga Sharonova, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
        Attention needed from Henrik Andreasson, Olga Sharonova and Olov Brändström

        Tove Petersson voted Code-Review+1

        Code-Review+1
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Henrik Andreasson
        • Olga Sharonova
        • Olov Brändström
        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: Ie7e82044a353905659eadae81f44544f67c36e9a
          Gerrit-Change-Number: 7485626
          Gerrit-PatchSet: 6
          Gerrit-Owner: Olov Brändström <brand...@chromium.org>
          Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
          Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
          Gerrit-Reviewer: Olov Brändström <brand...@chromium.org>
          Gerrit-Reviewer: Tove Petersson <to...@chromium.org>
          Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
          Gerrit-Attention: Olov Brändström <brand...@chromium.org>
          Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
          Gerrit-Comment-Date: Mon, 19 Jan 2026 15:43:21 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Olga Sharonova (Gerrit)

          unread,
          11:05 AM (9 hours ago) 11:05 AM
          to Olov Brändström, Tove Petersson, Henrik Andreasson, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
          Attention needed from Henrik Andreasson and Olov Brändström

          Olga Sharonova added 2 comments

          File chrome/browser/ui/views/desktop_capture/desktop_media_picker_views_unittest.cc
          Line 905, Patchset 6 (Latest): if (WindowAudioPreference() ==
          Olga Sharonova . unresolved

          Why there is no update of this logic in the follow-up CL?

          File media/base/media_switches.cc
          Line 1634, Patchset 6 (Latest): base::win::GetVersion() >= base::win::Version::WIN11;
          Tove Petersson . unresolved

          Can you add a comment about why it is disabled on Windows 10? From what I gather, application audio is supported on at least some versions of Windows 10?

          Olov Brändström

          This uses the same API as RestrictOwnAudio. `IsRestrictOwnAudioSupported()` checks for windows 11, so it should be the same for application audio capture. I'm not the expert, so if you want a better answer I could dig for it, but the reason we just enable for win11 is that we can't see if the user uses a win10 that support this API or not.

          Olga Sharonova

          IsWindowsProcessLoopbackCaptureSupported() should be used instead.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Henrik Andreasson
          • Olov Brändström
          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: Ie7e82044a353905659eadae81f44544f67c36e9a
            Gerrit-Change-Number: 7485626
            Gerrit-PatchSet: 6
            Gerrit-Owner: Olov Brändström <brand...@chromium.org>
            Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
            Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
            Gerrit-Reviewer: Olov Brändström <brand...@chromium.org>
            Gerrit-Reviewer: Tove Petersson <to...@chromium.org>
            Gerrit-Attention: Olov Brändström <brand...@chromium.org>
            Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
            Gerrit-Comment-Date: Mon, 19 Jan 2026 16:05:40 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Olov Brändström <brand...@chromium.org>
            Comment-In-Reply-To: Tove Petersson <to...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Olov Brändström (Gerrit)

            unread,
            3:30 PM (4 hours ago) 3:30 PM
            to Tove Petersson, Henrik Andreasson, Olga Sharonova, Chromium LUCI CQ, chromium...@chromium.org, feature-me...@chromium.org
            Attention needed from Henrik Andreasson, Olga Sharonova and Tove Petersson

            Olov Brändström added 2 comments

            File chrome/browser/ui/views/desktop_capture/desktop_media_picker_views_unittest.cc
            Line 905, Patchset 6: if (WindowAudioPreference() ==
            Olga Sharonova . resolved

            Why there is no update of this logic in the follow-up CL?

            Olov Brändström

            The code reads: If audio should be offered in the window tab, the info box should say "application audio" if {windowAudio: window} and application audio loopback is supported, and "system audio" otherwise. That is true before and after any change.

            The difference in the follow-up CL logic is just how often audio should be offered in the window tab, i.e. what `ShouldOfferWindowAudio()` returns.

            File media/base/media_switches.cc
            Line 1634, Patchset 6: base::win::GetVersion() >= base::win::Version::WIN11;
            Tove Petersson . resolved

            Can you add a comment about why it is disabled on Windows 10? From what I gather, application audio is supported on at least some versions of Windows 10?

            Olov Brändström

            This uses the same API as RestrictOwnAudio. `IsRestrictOwnAudioSupported()` checks for windows 11, so it should be the same for application audio capture. I'm not the expert, so if you want a better answer I could dig for it, but the reason we just enable for win11 is that we can't see if the user uses a win10 that support this API or not.

            Olga Sharonova

            IsWindowsProcessLoopbackCaptureSupported() should be used instead.

            Olov Brändström

            Done

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Henrik Andreasson
            • Olga Sharonova
            • Tove Petersson
            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: Ie7e82044a353905659eadae81f44544f67c36e9a
              Gerrit-Change-Number: 7485626
              Gerrit-PatchSet: 7
              Gerrit-Owner: Olov Brändström <brand...@chromium.org>
              Gerrit-Reviewer: Henrik Andreasson <hen...@chromium.org>
              Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
              Gerrit-Reviewer: Olov Brändström <brand...@chromium.org>
              Gerrit-Reviewer: Tove Petersson <to...@chromium.org>
              Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
              Gerrit-Attention: Henrik Andreasson <hen...@chromium.org>
              Gerrit-Attention: Tove Petersson <to...@chromium.org>
              Gerrit-Comment-Date: Mon, 19 Jan 2026 20:30:04 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              Comment-In-Reply-To: Olga Sharonova <ol...@chromium.org>
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy
              Reply all
              Reply to author
              Forward
              0 new messages