media: Ensure per application provisioning is always supported [chromium/src : main]

0 views
Skip to first unread message

Vikram Pasupathy (Gerrit)

unread,
Nov 10, 2025, 6:01:08 PMNov 10
to AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Rijubrata Bhaumik, halliwe...@chromium.org, android-web...@chromium.org, lcwu+...@chromium.org, asvitkine...@chromium.org, chfreme...@chromium.org, eme-r...@chromium.org, feature-me...@chromium.org
Attention needed from Feras Aldahlawi

Vikram Pasupathy voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Feras Aldahlawi
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: Iadf195fdb0adcdd1e31621fd156331af6ed9ebb3
Gerrit-Change-Number: 7137302
Gerrit-PatchSet: 11
Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
Gerrit-Reviewer: Feras Aldahlawi <f...@chromium.org>
Gerrit-Reviewer: Vikram Pasupathy <vpasu...@chromium.org>
Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
Gerrit-CC: Rijubrata Bhaumik <rijubrat...@intel.com>
Gerrit-Attention: Feras Aldahlawi <f...@chromium.org>
Gerrit-Comment-Date: Mon, 10 Nov 2025 23:01:00 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Feras Aldahlawi (Gerrit)

unread,
Nov 10, 2025, 8:55:59 PMNov 10
to Vikram Pasupathy, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Rijubrata Bhaumik, halliwe...@chromium.org, android-web...@chromium.org, lcwu+...@chromium.org, asvitkine...@chromium.org, chfreme...@chromium.org, eme-r...@chromium.org, feature-me...@chromium.org
Attention needed from Vikram Pasupathy

Feras Aldahlawi voted and added 3 comments

Votes added by Feras Aldahlawi

Code-Review+1

3 comments

Patchset-level comments
File-level comment, Patchset 12 (Latest):
Feras Aldahlawi . resolved

lgtm, but need android owners to look over the fact that this can indeed be deprecated.

Commit Message
Line 18, Patchset 12 (Latest):Bug: 425948259
Feras Aldahlawi . unresolved

use b: 425948259

File components/cdm/browser/media_drm_storage_impl.h
Line 97, Patchset 12 (Latest):
// |get_origin_id_cb| must be provided and is used to obtain an origin ID.
// |allow_empty_origin_id_cb| is used to determine if an empty origin ID is
// allowed or not. It is called if |get_origin_id_cb| is unable to return an
// origin ID.
Feras Aldahlawi . unresolved

update comment.

Open in Gerrit

Related details

Attention is currently required from:
  • Vikram Pasupathy
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: Iadf195fdb0adcdd1e31621fd156331af6ed9ebb3
    Gerrit-Change-Number: 7137302
    Gerrit-PatchSet: 12
    Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-Reviewer: Feras Aldahlawi <f...@chromium.org>
    Gerrit-Reviewer: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
    Gerrit-CC: Rijubrata Bhaumik <rijubrat...@intel.com>
    Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-Comment-Date: Tue, 11 Nov 2025 01:55:50 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Vikram Pasupathy (Gerrit)

    unread,
    Nov 11, 2025, 10:24:48 AMNov 11
    to AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Rijubrata Bhaumik, halliwe...@chromium.org, android-web...@chromium.org, lcwu+...@chromium.org, asvitkine...@chromium.org, chfreme...@chromium.org, eme-r...@chromium.org, feature-me...@chromium.org
    Attention needed from Xiaohan Wang

    Vikram Pasupathy added 2 comments

    Commit Message
    Line 18, Patchset 12:Bug: 425948259
    Feras Aldahlawi . resolved

    use b: 425948259

    Vikram Pasupathy

    From the email, it seems to be only for internal bugs.

    File components/cdm/browser/media_drm_storage_impl.h

    // |get_origin_id_cb| must be provided and is used to obtain an origin ID.
    // |allow_empty_origin_id_cb| is used to determine if an empty origin ID is
    // allowed or not. It is called if |get_origin_id_cb| is unable to return an
    // origin ID.
    Feras Aldahlawi . resolved

    update comment.

    Vikram Pasupathy

    Done, TY!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Xiaohan Wang
    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: Iadf195fdb0adcdd1e31621fd156331af6ed9ebb3
      Gerrit-Change-Number: 7137302
      Gerrit-PatchSet: 13
      Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
      Gerrit-Reviewer: Feras Aldahlawi <f...@chromium.org>
      Gerrit-Reviewer: Vikram Pasupathy <vpasu...@chromium.org>
      Gerrit-Reviewer: Xiaohan Wang <xhw...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-CC: Rijubrata Bhaumik <rijubrat...@intel.com>
      Gerrit-Attention: Xiaohan Wang <xhw...@chromium.org>
      Gerrit-Comment-Date: Tue, 11 Nov 2025 15:24:38 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Feras Aldahlawi <f...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Xiaohan Wang (Gerrit)

      unread,
      Nov 11, 2025, 9:41:23 PMNov 11
      to Vikram Pasupathy, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Rijubrata Bhaumik, halliwe...@chromium.org, android-web...@chromium.org, lcwu+...@chromium.org, asvitkine...@chromium.org, chfreme...@chromium.org, eme-r...@chromium.org, feature-me...@chromium.org
      Attention needed from Vikram Pasupathy

      Xiaohan Wang added 1 comment

      File media/base/android/media_drm_bridge.cc
      Line 378, Patchset 13 (Parent): }
      Xiaohan Wang . unresolved

      Thanks for the change! It's so exciting to see these complicated code going away. Unfortunately, this is the tricky part that I'm not totally sure whether we can remove entirely.

      The FIRST_API_LEVEL is "SDK version that initially shipped on the device":
      https://source.android.com/reference/tradefed/com/android/tradefed/device/DeviceProperties#FIRST_API_LEVEL

      For example, a device that's originally shipped on N, but later updated to O+, will still return N here, and it will not support per-app-provisioning. Interesting enough, Media.EME.MediaDrm.PreprovisionedOriginId.NonPerAppProvisioningDevice count is almost always zero: http://shortn/_DGhehijuAX. That might mean that in reality, almost all devices indeed support per-app provisioning.

      As you can see, there's a disconnection here. I checked the original design doc http://shortn/_tonWP0thCA, and I am confused with this implementation. It feels like there's a bug to me. Using the same example, if a device is current on O, but originally shipped on N (first_api_level), then we'll return true, which seems to be wrong.

      This is my understanding, which might not be correct. I suggest you file an internal bug (the current one is too generic), and add Android owners to discuss this. If there's a bug, we should fix the bug first, and then use the metrics to decide whether we can actually remove these...

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Vikram Pasupathy
      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: Iadf195fdb0adcdd1e31621fd156331af6ed9ebb3
        Gerrit-Change-Number: 7137302
        Gerrit-PatchSet: 13
        Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
        Gerrit-Reviewer: Feras Aldahlawi <f...@chromium.org>
        Gerrit-Reviewer: Vikram Pasupathy <vpasu...@chromium.org>
        Gerrit-Reviewer: Xiaohan Wang <xhw...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-CC: Rijubrata Bhaumik <rijubrat...@intel.com>
        Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
        Gerrit-Comment-Date: Wed, 12 Nov 2025 02:41:13 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Vikram Pasupathy (Gerrit)

        unread,
        Nov 12, 2025, 7:00:27 PMNov 12
        to AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, Rijubrata Bhaumik, halliwe...@chromium.org, android-web...@chromium.org, lcwu+...@chromium.org, asvitkine...@chromium.org, chfreme...@chromium.org, eme-r...@chromium.org, feature-me...@chromium.org
        Attention needed from Xiaohan Wang

        Vikram Pasupathy added 1 comment

        File media/base/android/media_drm_bridge.cc
        Xiaohan Wang . unresolved

        Thanks for the change! It's so exciting to see these complicated code going away. Unfortunately, this is the tricky part that I'm not totally sure whether we can remove entirely.

        The FIRST_API_LEVEL is "SDK version that initially shipped on the device":
        https://source.android.com/reference/tradefed/com/android/tradefed/device/DeviceProperties#FIRST_API_LEVEL

        For example, a device that's originally shipped on N, but later updated to O+, will still return N here, and it will not support per-app-provisioning. Interesting enough, Media.EME.MediaDrm.PreprovisionedOriginId.NonPerAppProvisioningDevice count is almost always zero: http://shortn/_DGhehijuAX. That might mean that in reality, almost all devices indeed support per-app provisioning.

        As you can see, there's a disconnection here. I checked the original design doc http://shortn/_tonWP0thCA, and I am confused with this implementation. It feels like there's a bug to me. Using the same example, if a device is current on O, but originally shipped on N (first_api_level), then we'll return true, which seems to be wrong.

        This is my understanding, which might not be correct. I suggest you file an internal bug (the current one is too generic), and add Android owners to discuss this. If there's a bug, we should fix the bug first, and then use the metrics to decide whether we can actually remove these...

        Vikram Pasupathy

        SG, followed up and created https://chromium-review.googlesource.com/c/chromium/src/+/7146728 for that. I will put this as a WIP until we get statistics from that histogram.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Xiaohan Wang
        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: Iadf195fdb0adcdd1e31621fd156331af6ed9ebb3
        Gerrit-Change-Number: 7137302
        Gerrit-PatchSet: 13
        Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
        Gerrit-Reviewer: Feras Aldahlawi <f...@chromium.org>
        Gerrit-Reviewer: Vikram Pasupathy <vpasu...@chromium.org>
        Gerrit-Reviewer: Xiaohan Wang <xhw...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-CC: Rijubrata Bhaumik <rijubrat...@intel.com>
        Gerrit-Attention: Xiaohan Wang <xhw...@chromium.org>
        Gerrit-Comment-Date: Thu, 13 Nov 2025 00:00:13 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Xiaohan Wang <xhw...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy
        Reply all
        Reply to author
        Forward
        0 new messages