media: Reporting different levels of Visibility of WebPlayer [chromium/src : main]

0 views
Skip to first unread message

Vikram Pasupathy (Gerrit)

unread,
Oct 30, 2025, 4:00:03 PM (14 days ago) Oct 30
to Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
Attention needed from Sangbaek Park

Vikram Pasupathy voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Sangbaek Park
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: I5caed8d9241867800d86231d46dc845bd717c4ff
Gerrit-Change-Number: 6961946
Gerrit-PatchSet: 21
Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: srirama chandra sekhar <srir...@samsung.com>
Gerrit-Attention: Sangbaek Park <sangba...@chromium.org>
Gerrit-Comment-Date: Thu, 30 Oct 2025 19:59:54 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Sangbaek Park (Gerrit)

unread,
Oct 30, 2025, 5:27:29 PM (14 days ago) Oct 30
to Vikram Pasupathy, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
Attention needed from Vikram Pasupathy

Sangbaek Park added 8 comments

Patchset-level comments
File-level comment, Patchset 21 (Latest):
Sangbaek Park . resolved

Thanks for the great work! I finished my first review, PTAL.

File chrome/browser/media/encrypted_media_browsertest.cc
Line 1911, Patchset 21 (Latest):
Sangbaek Park . unresolved

Can we have a new test page with hidden video (some obvious case where V1 reports 0 or low ratio) so that we can add one more test case?

File media/mojo/services/media_metrics_provider.h
Line 172, Patchset 21 (Latest): int intersection_ratio_final_v1_ = 0;
Sangbaek Park . unresolved

Any reason to have inconsistent types `int` versus `int32_t` for input param in APIs? Is this because of mojo call interface?

Line 172, Patchset 21 (Latest): int intersection_ratio_final_v1_ = 0;
Sangbaek Park . unresolved

I mentioned this in another comment, to distiguish between no report and 0, can we initialize it to -1? And add a comment what -1 means?

File third_party/blink/renderer/core/html/media/html_video_element.cc
Line 96, Patchset 21 (Latest): ({0.0f, 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f}));
Sangbaek Park . unresolved

Do we still need this even though we are not monitoring the thresholds for MaxV1?

Line 858, Patchset 21 (Latest): latest_intersection_ratio_v1_);
Sangbaek Park . unresolved

`latest_intersection_ratio_v1_` may not be reported at all for some cases. Then we can't distingush between no report (unknown) and 0. Maybe consider initializing it to -1?

File third_party/blink/renderer/platform/media/web_media_player_impl.cc
Line 1101, Patchset 21 (Latest):
Sangbaek Park . unresolved

nit: Remove unnecessary whitespace changes. ditto for #1103

File tools/metrics/ukm/ukm.xml
Line 15226, Patchset 21 (Latest): EME API call, as a percentage from 0 to 100. This uses
Sangbaek Park . unresolved

Can we add what 0 means?

Open in Gerrit

Related details

Attention is currently required from:
  • Vikram Pasupathy
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: I5caed8d9241867800d86231d46dc845bd717c4ff
    Gerrit-Change-Number: 6961946
    Gerrit-PatchSet: 21
    Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-Comment-Date: Thu, 30 Oct 2025 21:27:18 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Vikram Pasupathy (Gerrit)

    unread,
    Oct 31, 2025, 12:44:06 PM (13 days ago) Oct 31
    to Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Sangbaek Park

    Vikram Pasupathy added 6 comments

    File media/mojo/services/media_metrics_provider.h
    Line 172, Patchset 21: int intersection_ratio_final_v1_ = 0;
    Sangbaek Park . resolved

    I mentioned this in another comment, to distiguish between no report and 0, can we initialize it to -1? And add a comment what -1 means?

    Vikram Pasupathy

    Done

    Line 172, Patchset 21: int intersection_ratio_final_v1_ = 0;
    Sangbaek Park . resolved

    Any reason to have inconsistent types `int` versus `int32_t` for input param in APIs? Is this because of mojo call interface?

    Vikram Pasupathy

    Yeah, the mojo call interface, but you're right, I will update everything to be `int32_t` for consistency.

    File third_party/blink/renderer/core/html/media/html_video_element.cc
    Line 96, Patchset 21: ({0.0f, 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f}));
    Sangbaek Park . resolved

    Do we still need this even though we are not monitoring the thresholds for MaxV1?

    Vikram Pasupathy

    No, thanks so much.

    Line 858, Patchset 21: latest_intersection_ratio_v1_);
    Sangbaek Park . resolved

    `latest_intersection_ratio_v1_` may not be reported at all for some cases. Then we can't distingush between no report (unknown) and 0. Maybe consider initializing it to -1?

    Vikram Pasupathy

    Done

    File third_party/blink/renderer/platform/media/web_media_player_impl.cc
    Line 1101, Patchset 21:
    Sangbaek Park . resolved

    nit: Remove unnecessary whitespace changes. ditto for #1103

    Vikram Pasupathy

    Done

    File tools/metrics/ukm/ukm.xml
    Line 15226, Patchset 21: EME API call, as a percentage from 0 to 100. This uses
    Sangbaek Park . resolved

    Can we add what 0 means?

    Vikram Pasupathy

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Sangbaek Park
    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: I5caed8d9241867800d86231d46dc845bd717c4ff
    Gerrit-Change-Number: 6961946
    Gerrit-PatchSet: 22
    Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Comment-Date: Fri, 31 Oct 2025 16:43:55 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Sangbaek Park <sangba...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Sangbaek Park (Gerrit)

    unread,
    Oct 31, 2025, 12:53:32 PM (13 days ago) Oct 31
    to Vikram Pasupathy, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Vikram Pasupathy

    Sangbaek Park added 2 comments

    Patchset-level comments
    File-level comment, Patchset 22 (Latest):
    Sangbaek Park . unresolved

    Please fix test failures and ClangTidy warnings (dependency issue?), thanks!

    File tools/metrics/ukm/ukm.xml
    Line 15226, Patchset 21: EME API call, as a percentage from 0 to 100. This uses
    Sangbaek Park . unresolved

    Can we add what 0 means?

    Vikram Pasupathy

    Done

    Sangbaek Park

    Also add what -1 means here too?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Vikram Pasupathy
    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: I5caed8d9241867800d86231d46dc845bd717c4ff
    Gerrit-Change-Number: 6961946
    Gerrit-PatchSet: 22
    Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-Comment-Date: Fri, 31 Oct 2025 16:53:22 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Sangbaek Park <sangba...@chromium.org>
    Comment-In-Reply-To: Vikram Pasupathy <vpasu...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Vikram Pasupathy (Gerrit)

    unread,
    Nov 3, 2025, 2:01:19 PM (10 days ago) Nov 3
    to Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Sangbaek Park

    Vikram Pasupathy added 3 comments

    Patchset-level comments
    File-level comment, Patchset 22:
    Sangbaek Park . resolved

    Please fix test failures and ClangTidy warnings (dependency issue?), thanks!

    Vikram Pasupathy

    Done (the clangtidy shows up on a lot of unrelated CLs, I think its a bug)

    File chrome/browser/media/encrypted_media_browsertest.cc
    Line 1911, Patchset 21:
    Sangbaek Park . unresolved

    Can we have a new test page with hidden video (some obvious case where V1 reports 0 or low ratio) so that we can add one more test case?

    Vikram Pasupathy

    ptal, hidden video would report 100% (but maybe we want to add that in case we do explore the v2), but I added an offscreen eme playback.

    Would you also want a case where it is hidden (via css, or the `hidden` tag), and that would have V1 report greater than 0 visibility?

    File tools/metrics/ukm/ukm.xml
    Line 15226, Patchset 21: EME API call, as a percentage from 0 to 100. This uses
    Sangbaek Park . resolved

    Can we add what 0 means?

    Vikram Pasupathy

    Done

    Sangbaek Park

    Also add what -1 means here too?

    Vikram Pasupathy

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Sangbaek Park
    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: I5caed8d9241867800d86231d46dc845bd717c4ff
    Gerrit-Change-Number: 6961946
    Gerrit-PatchSet: 25
    Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Comment-Date: Mon, 03 Nov 2025 19:01:08 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Sangbaek Park (Gerrit)

    unread,
    Nov 3, 2025, 2:28:27 PM (10 days ago) Nov 3
    to Vikram Pasupathy, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Vikram Pasupathy

    Sangbaek Park added 1 comment

    File chrome/browser/media/encrypted_media_browsertest.cc
    Sangbaek Park . unresolved

    Can we have a new test page with hidden video (some obvious case where V1 reports 0 or low ratio) so that we can add one more test case?

    Vikram Pasupathy

    ptal, hidden video would report 100% (but maybe we want to add that in case we do explore the v2), but I added an offscreen eme playback.

    Would you also want a case where it is hidden (via css, or the `hidden` tag), and that would have V1 report greater than 0 visibility?

    Sangbaek Park

    I see, V1 reports 100% with css/hidden. I agree with that it would be worth it if we have v2. Could you please explain what offscreen eme playback means?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Vikram Pasupathy
    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: I5caed8d9241867800d86231d46dc845bd717c4ff
    Gerrit-Change-Number: 6961946
    Gerrit-PatchSet: 25
    Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-Comment-Date: Mon, 03 Nov 2025 19:28:18 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Vikram Pasupathy (Gerrit)

    unread,
    Nov 4, 2025, 1:06:34 AM (9 days ago) Nov 4
    to Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Sangbaek Park

    Vikram Pasupathy added 1 comment

    File chrome/browser/media/encrypted_media_browsertest.cc
    Sangbaek Park . unresolved

    Can we have a new test page with hidden video (some obvious case where V1 reports 0 or low ratio) so that we can add one more test case?

    Vikram Pasupathy

    ptal, hidden video would report 100% (but maybe we want to add that in case we do explore the v2), but I added an offscreen eme playback.

    Would you also want a case where it is hidden (via css, or the `hidden` tag), and that would have V1 report greater than 0 visibility?

    Sangbaek Park

    I see, V1 reports 100% with css/hidden. I agree with that it would be worth it if we have v2. Could you please explain what offscreen eme playback means?

    Vikram Pasupathy

    By offscreen, I mean that it is moved to the left of the viewport by `position: absolute; left: -9999px;` so that the v1 detects that it is not in the screen at all during playback start.

    I also refactored so that we don't create a new html file, and instead add it as a parameter within the existing html file to be offscreen or not.

    I also added a new addition so that we test the hidden property, and verify that the v1 mechanism does not record it.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Sangbaek Park
    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: I5caed8d9241867800d86231d46dc845bd717c4ff
    Gerrit-Change-Number: 6961946
    Gerrit-PatchSet: 27
    Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Comment-Date: Tue, 04 Nov 2025 06:06:24 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Sangbaek Park (Gerrit)

    unread,
    Nov 4, 2025, 4:45:32 PM (9 days ago) Nov 4
    to Vikram Pasupathy, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Vikram Pasupathy

    Sangbaek Park added 10 comments

    Patchset-level comments
    File-level comment, Patchset 27 (Latest):
    Sangbaek Park . unresolved

    PTAL and fix the test bot failures (or retry), thanks!

    File chrome/browser/media/encrypted_media_browsertest.cc
    Line 1911, Patchset 21:
    Sangbaek Park . resolved

    Can we have a new test page with hidden video (some obvious case where V1 reports 0 or low ratio) so that we can add one more test case?

    Vikram Pasupathy

    ptal, hidden video would report 100% (but maybe we want to add that in case we do explore the v2), but I added an offscreen eme playback.

    Would you also want a case where it is hidden (via css, or the `hidden` tag), and that would have V1 report greater than 0 visibility?

    Sangbaek Park

    I see, V1 reports 100% with css/hidden. I agree with that it would be worth it if we have v2. Could you please explain what offscreen eme playback means?

    Vikram Pasupathy

    By offscreen, I mean that it is moved to the left of the viewport by `position: absolute; left: -9999px;` so that the v1 detects that it is not in the screen at all during playback start.

    I also refactored so that we don't create a new html file, and instead add it as a parameter within the existing html file to be offscreen or not.

    I also added a new addition so that we test the hidden property, and verify that the v1 mechanism does not record it.

    Sangbaek Park

    Ack. Thanks!

    Line 1913, Patchset 27 (Latest): IntersectionRatio) {
    Sangbaek Park . unresolved

    nit: Can we add what is expected or what to test in this test method name? i.e., `IntersectionRatio_VisibleVideo`?

    File media/mojo/services/media_metrics_provider.cc
    Line 97, Patchset 27 (Latest): builder.SetIntersectionRatioFinalV1(intersection_ratio_final_v1_);
    // We report it even in cases of non EME playback to distinguish
    // between a non-visible web player, where this value would be 0,
    // and a playback without any EME, where this value would be -1.
    builder.SetIntersectionRatioAtFirstEmeApiCallV1(
    intersection_ratio_at_first_eme_api_call_v1_);
    Sangbaek Park . unresolved

    Sorry for this commment that could swipe the previous job (setting -1 by default).

    After looking at other code for handdling no report case + some UKM fields are not reported if data is not avaialble, should we consider `std::optional<int32_t>` for both `intersection_ratio_final_v1_` and `intersection_ratio_at_first_eme_api_call_v1_` instead of using `-1`? We can remove all descriptions for `-1` here and there. And then we don't report those values if they are not available (=no report). In the UKM query, we still can distiguish bewteen the report case and no report case (if this field is NULL).

    WDYT?

    File media/unit_tests_bundle_data.filelist
    Line 529, Patchset 27 (Latest)://media/test/data/vp9-agtm-country-code-extension.webm
    Sangbaek Park . unresolved

    nit: Can we drop this change since no change other than the order?

    File third_party/blink/renderer/core/html/media/html_video_element.h
    Line 287, Patchset 27 (Latest): int latest_intersection_ratio_v1_ = 0;
    Sangbaek Park . unresolved

    Should this be `std::optional<int>` since we can't distinguish between 0 and not reported?

    File third_party/blink/renderer/core/html/media/html_video_element.cc
    Line 847, Patchset 27 (Latest):void HTMLVideoElement::OnSetMediaKeys() {
    Sangbaek Park . unresolved

    Question: Would it be always the case where calling `OnSetMediaKeys()` occurs once? Or we just take the first call into consideration by design?

    Line 850, Patchset 27 (Latest): web_media_player_->SetIntersectionRatioAtFirstEmeApiCallV1(
    Sangbaek Park . unresolved

    GetWebMediaPlayer()? ditto for others?

    Line 854, Patchset 27 (Latest): intersection_ratio_at_first_eme_api_call_ = latest_intersection_ratio_v1_;
    Sangbaek Park . unresolved

    If the default value is just 0 and never reported then it will be set to 0 which doesn't seem right. Maybe we should make `latest_intersection_ratio_v1_` optional?

    Line 862, Patchset 27 (Latest): if (web_media_player_) {
    Sangbaek Park . unresolved

    GetWebMediaPlayer()?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Vikram Pasupathy
    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: I5caed8d9241867800d86231d46dc845bd717c4ff
    Gerrit-Change-Number: 6961946
    Gerrit-PatchSet: 27
    Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-Comment-Date: Tue, 04 Nov 2025 21:45:16 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Vikram Pasupathy (Gerrit)

    unread,
    Nov 6, 2025, 12:51:07 PM (7 days ago) Nov 6
    to Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Sangbaek Park

    Vikram Pasupathy added 9 comments

    Patchset-level comments
    File-level comment, Patchset 27:
    Sangbaek Park . resolved

    PTAL and fix the test bot failures (or retry), thanks!

    Vikram Pasupathy

    Done, bot failures keep happening due to tree closures 😞, please ignore them for now

    File chrome/browser/media/encrypted_media_browsertest.cc
    Line 1913, Patchset 27: IntersectionRatio) {
    Sangbaek Park . resolved

    nit: Can we add what is expected or what to test in this test method name? i.e., `IntersectionRatio_VisibleVideo`?

    Vikram Pasupathy

    Done

    File media/mojo/services/media_metrics_provider.cc
    Line 97, Patchset 27: builder.SetIntersectionRatioFinalV1(intersection_ratio_final_v1_);

    // We report it even in cases of non EME playback to distinguish
    // between a non-visible web player, where this value would be 0,
    // and a playback without any EME, where this value would be -1.
    builder.SetIntersectionRatioAtFirstEmeApiCallV1(
    intersection_ratio_at_first_eme_api_call_v1_);
    Sangbaek Park . resolved

    Sorry for this commment that could swipe the previous job (setting -1 by default).

    After looking at other code for handdling no report case + some UKM fields are not reported if data is not avaialble, should we consider `std::optional<int32_t>` for both `intersection_ratio_final_v1_` and `intersection_ratio_at_first_eme_api_call_v1_` instead of using `-1`? We can remove all descriptions for `-1` here and there. And then we don't report those values if they are not available (=no report). In the UKM query, we still can distiguish bewteen the report case and no report case (if this field is NULL).

    WDYT?

    Vikram Pasupathy

    Sounds good to me.

    File media/unit_tests_bundle_data.filelist
    Line 529, Patchset 27://media/test/data/vp9-agtm-country-code-extension.webm
    Sangbaek Park . resolved

    nit: Can we drop this change since no change other than the order?

    Vikram Pasupathy

    Done

    File third_party/blink/renderer/core/html/media/html_video_element.h
    Line 287, Patchset 27: int latest_intersection_ratio_v1_ = 0;
    Sangbaek Park . resolved

    Should this be `std::optional<int>` since we can't distinguish between 0 and not reported?

    Vikram Pasupathy

    Done

    File third_party/blink/renderer/core/html/media/html_video_element.cc
    Line 847, Patchset 27:void HTMLVideoElement::OnSetMediaKeys() {
    Sangbaek Park . unresolved

    Question: Would it be always the case where calling `OnSetMediaKeys()` occurs once? Or we just take the first call into consideration by design?

    Vikram Pasupathy

    The spec says the html media element can only be associated with a single MediaKeys object at a time, and replacing and clearing the existing MediaKeys object, especially during playback "is a quality of implementation issue" and can lead to a "bad user experience or rejected promise." (From the spec).

    Line 850, Patchset 27: web_media_player_->SetIntersectionRatioAtFirstEmeApiCallV1(
    Sangbaek Park . resolved

    GetWebMediaPlayer()? ditto for others?

    Vikram Pasupathy

    SG. Seems like this file arbitrarily uses either. I will fix the other occurrences later that are not made in this PS.

    Line 854, Patchset 27: intersection_ratio_at_first_eme_api_call_ = latest_intersection_ratio_v1_;
    Sangbaek Park . resolved

    If the default value is just 0 and never reported then it will be set to 0 which doesn't seem right. Maybe we should make `latest_intersection_ratio_v1_` optional?

    Vikram Pasupathy

    Done

    Line 862, Patchset 27: if (web_media_player_) {
    Sangbaek Park . resolved

    GetWebMediaPlayer()?

    Vikram Pasupathy

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Sangbaek Park
    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: I5caed8d9241867800d86231d46dc845bd717c4ff
    Gerrit-Change-Number: 6961946
    Gerrit-PatchSet: 30
    Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
    Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Sangbaek Park <sangba...@chromium.org>
    Gerrit-Comment-Date: Thu, 06 Nov 2025 17:50:58 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Sangbaek Park (Gerrit)

    unread,
    Nov 6, 2025, 1:02:22 PM (7 days ago) Nov 6
    to Vikram Pasupathy, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
    Attention needed from Vikram Pasupathy

    Sangbaek Park voted and added 3 comments

    Votes added by Sangbaek Park

    Code-Review+1

    3 comments

    Patchset-level comments
    File-level comment, Patchset 30 (Latest):
    Sangbaek Park . resolved

    lgtm % nit

    File chrome/browser/media/encrypted_media_browsertest.cc
    Line 1948, Patchset 30 (Latest): // TODO(crbug.com/40498529): The values can start being checked after
    // setMediaKeys happens after play.
    Sangbaek Park . unresolved

    nit: Move this comment between line #1950 and #1951?

    File third_party/blink/renderer/core/html/media/html_video_element.cc
    Line 847, Patchset 27:void HTMLVideoElement::OnSetMediaKeys() {
    Sangbaek Park . resolved

    Question: Would it be always the case where calling `OnSetMediaKeys()` occurs once? Or we just take the first call into consideration by design?

    Vikram Pasupathy

    The spec says the html media element can only be associated with a single MediaKeys object at a time, and replacing and clearing the existing MediaKeys object, especially during playback "is a quality of implementation issue" and can lead to a "bad user experience or rejected promise." (From the spec).

    Sangbaek Park

    Acknowledged

    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: I5caed8d9241867800d86231d46dc845bd717c4ff
      Gerrit-Change-Number: 6961946
      Gerrit-PatchSet: 30
      Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
      Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: srirama chandra sekhar <srir...@samsung.com>
      Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
      Gerrit-Comment-Date: Thu, 06 Nov 2025 18:02:10 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Vikram Pasupathy (Gerrit)

      unread,
      Nov 6, 2025, 1:14:52 PM (7 days ago) Nov 6
      to Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
      Attention needed from Xiaohan Wang

      Vikram Pasupathy added 1 comment

      File chrome/browser/media/encrypted_media_browsertest.cc
      Line 1948, Patchset 30: // TODO(crbug.com/40498529): The values can start being checked after

      // setMediaKeys happens after play.
      Sangbaek Park . resolved

      nit: Move this comment between line #1950 and #1951?

      Vikram Pasupathy

      Done, sorry about that.

      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: I5caed8d9241867800d86231d46dc845bd717c4ff
        Gerrit-Change-Number: 6961946
        Gerrit-PatchSet: 31
        Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
        Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: srirama chandra sekhar <srir...@samsung.com>
        Gerrit-Attention: Xiaohan Wang <xhw...@chromium.org>
        Gerrit-Comment-Date: Thu, 06 Nov 2025 18:14:43 +0000
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Vikram Pasupathy (Gerrit)

        unread,
        Nov 7, 2025, 12:13:51 PM (6 days ago) Nov 7
        to Dale Curtis, Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
        Attention needed from Dale Curtis

        Vikram Pasupathy added 1 comment

        Patchset-level comments
        File-level comment, Patchset 32 (Latest):
        Vikram Pasupathy . resolved

        Hi Dale, ptal. Thank you!

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Dale Curtis
        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: I5caed8d9241867800d86231d46dc845bd717c4ff
        Gerrit-Change-Number: 6961946
        Gerrit-PatchSet: 32
        Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
        Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
        Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: Xiaohan Wang <xhw...@chromium.org>
        Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
        Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
        Gerrit-Comment-Date: Fri, 07 Nov 2025 17:13:39 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Xiaohan Wang (Gerrit)

        unread,
        Nov 7, 2025, 1:12:38 PM (6 days ago) Nov 7
        to Vikram Pasupathy, Dale Curtis, Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
        Attention needed from Dale Curtis and Vikram Pasupathy

        Xiaohan Wang added 1 comment

        Patchset-level comments
        Xiaohan Wang . resolved

        To be clear, I provided comments in the design doc, mostly trying to make sure we have proper test coverage. I hope we can get the testing part sorted out before landing this.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Dale Curtis
        • Vikram Pasupathy
        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: I5caed8d9241867800d86231d46dc845bd717c4ff
        Gerrit-Change-Number: 6961946
        Gerrit-PatchSet: 32
        Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
        Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
        Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: Xiaohan Wang <xhw...@chromium.org>
        Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
        Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
        Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
        Gerrit-Comment-Date: Fri, 07 Nov 2025 18:12:25 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Xiaohan Wang (Gerrit)

        unread,
        Nov 7, 2025, 1:43:21 PM (6 days ago) Nov 7
        to Vikram Pasupathy, Dale Curtis, Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
        Attention needed from Dale Curtis and Vikram Pasupathy

        Xiaohan Wang added 1 comment

        Commit Message
        Line 20, Patchset 32 (Latest):Bug: 435526104
        Xiaohan Wang . unresolved

        use b:<bug> format for internal bugs

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Dale Curtis
        • 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: I5caed8d9241867800d86231d46dc845bd717c4ff
          Gerrit-Change-Number: 6961946
          Gerrit-PatchSet: 32
          Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
          Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
          Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: Xiaohan Wang <xhw...@chromium.org>
          Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
          Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
          Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
          Gerrit-Comment-Date: Fri, 07 Nov 2025 18:43:09 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Vikram Pasupathy (Gerrit)

          unread,
          Nov 7, 2025, 4:15:08 PM (6 days ago) Nov 7
          to Dale Curtis, Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
          Attention needed from Dale Curtis and Xiaohan Wang

          Vikram Pasupathy added 1 comment

          Commit Message
          Line 20, Patchset 32:Bug: 435526104
          Xiaohan Wang . resolved

          use b:<bug> format for internal bugs

          Vikram Pasupathy

          Done, sorry about that.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Dale Curtis
          • 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: I5caed8d9241867800d86231d46dc845bd717c4ff
            Gerrit-Change-Number: 6961946
            Gerrit-PatchSet: 34
            Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
            Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
            Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: Xiaohan Wang <xhw...@chromium.org>
            Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
            Gerrit-Attention: Xiaohan Wang <xhw...@chromium.org>
            Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
            Gerrit-Comment-Date: Fri, 07 Nov 2025 21:14:56 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Xiaohan Wang <xhw...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Dale Curtis (Gerrit)

            unread,
            Nov 10, 2025, 1:29:30 PM (3 days ago) Nov 10
            to Vikram Pasupathy, Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
            Attention needed from Vikram Pasupathy and Xiaohan Wang

            Dale Curtis added 1 comment

            Patchset-level comments
            File-level comment, Patchset 34 (Latest):
            Dale Curtis . unresolved

            Do you need to know precise ratios to answer the questions posed in that doc? We have a dominant-detection mechanism that was recently added https://chromium-review.googlesource.com/c/chromium/src/+/6998039

            Skimming the doc it seems like it would be sufficient to just record if the content ever became dominant or not.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Vikram Pasupathy
            • 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: I5caed8d9241867800d86231d46dc845bd717c4ff
              Gerrit-Change-Number: 6961946
              Gerrit-PatchSet: 34
              Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
              Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
              Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: Xiaohan Wang <xhw...@chromium.org>
              Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
              Gerrit-Attention: Xiaohan Wang <xhw...@chromium.org>
              Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
              Gerrit-Comment-Date: Mon, 10 Nov 2025 18:29:19 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Vikram Pasupathy (Gerrit)

              unread,
              Nov 11, 2025, 10:52:39 PM (2 days ago) Nov 11
              to Dale Curtis, Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
              Attention needed from Dale Curtis, Sangbaek Park, Vikram Pasupathy and Xiaohan Wang

              Vikram Pasupathy voted and added 1 comment

              Votes added by Vikram Pasupathy

              Commit-Queue+1

              1 comment

              Patchset-level comments
              Dale Curtis . unresolved

              Do you need to know precise ratios to answer the questions posed in that doc? We have a dominant-detection mechanism that was recently added https://chromium-review.googlesource.com/c/chromium/src/+/6998039

              Skimming the doc it seems like it would be sufficient to just record if the content ever became dominant or not.

              Vikram Pasupathy

              Refactored the CL to use the IO from the dominance detection mechanism. We will go forward with recording the ratio for granularity. The dominance detection is too high, at 85%, and we think that being able to set our own ratio is the way to go.

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Dale Curtis
              • Sangbaek Park
              • Vikram Pasupathy
              • Xiaohan Wang
              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: I5caed8d9241867800d86231d46dc845bd717c4ff
                Gerrit-Change-Number: 6961946
                Gerrit-PatchSet: 42
                Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
                Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
                Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: Xiaohan Wang <xhw...@chromium.org>
                Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
                Gerrit-Attention: Sangbaek Park <sangba...@chromium.org>
                Gerrit-Attention: Xiaohan Wang <xhw...@chromium.org>
                Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
                Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
                Gerrit-Comment-Date: Wed, 12 Nov 2025 03:52:29 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: Yes
                Comment-In-Reply-To: Dale Curtis <dalec...@chromium.org>
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Dale Curtis (Gerrit)

                unread,
                Nov 12, 2025, 1:38:12 PM (16 hours ago) Nov 12
                to Vikram Pasupathy, Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
                Attention needed from Sangbaek Park, Vikram Pasupathy and Xiaohan Wang

                Dale Curtis added 10 comments

                Patchset-level comments
                File-level comment, Patchset 34:
                Dale Curtis . resolved

                Do you need to know precise ratios to answer the questions posed in that doc? We have a dominant-detection mechanism that was recently added https://chromium-review.googlesource.com/c/chromium/src/+/6998039

                Skimming the doc it seems like it would be sufficient to just record if the content ever became dominant or not.

                Vikram Pasupathy

                Refactored the CL to use the IO from the dominance detection mechanism. We will go forward with recording the ratio for granularity. The dominance detection is too high, at 85%, and we think that being able to set our own ratio is the way to go.

                Dale Curtis

                Acknowledged

                File media/mojo/mojom/media_metrics_provider.mojom
                Line 68, Patchset 42 (Latest): SetIntersectionRatioFinalV1(int32 ratio_in_percent);
                Dale Curtis . unresolved

                V1 doesn't make much sense in this context. Are you planning a V2 or something later? Otherwise lets just call these SetFinalIntersectionRatio and SetInitialIntersectionRatio.

                File third_party/blink/renderer/core/html/media/html_video_element.h
                Line 289, Patchset 42 (Latest): bool did_report_first_api_call_ratio_ = false;
                Dale Curtis . unresolved

                Seems unnecessary with optional fields?

                Line 54, Patchset 42 (Latest): friend class HTMLMediaElementEncryptedMedia;
                Dale Curtis . unresolved

                This doesn't seem like the right pattern for this use case. Why friend versus another pattern?

                File third_party/blink/renderer/core/html/media/html_video_element.cc
                Line 114, Patchset 42 (Latest): custom_controls_fullscreen_detector_->SetIntersectionUpdateCallback(
                Dale Curtis . unresolved

                Why use a callback setter if you're just going to poll the value? Just add an accessor on the detector?

                Line 848, Patchset 42 (Latest): if (GetWebMediaPlayer()) {
                Dale Curtis . unresolved

                `if (auto* wmp = GetWebMediaPlayer())`

                Line 864, Patchset 42 (Latest): if (GetWebMediaPlayer()) {
                Dale Curtis . unresolved

                `if (auto* wmp = GetWebMediaPlayer())`

                Line 885, Patchset 42 (Latest): if (GetWebMediaPlayer() && latest_intersection_ratio_percent_.has_value()) {
                Dale Curtis . unresolved

                `if (auto* wmp = GetWebMediaPlayer(); wmp && ...`

                File third_party/blink/renderer/core/html/media/media_custom_controls_fullscreen_detector.cc
                Line 132, Patchset 42 (Latest): intersection_update_callback_ = std::move(callback);
                Dale Curtis . unresolved

                DCHECK it's not already set.

                File third_party/blink/renderer/modules/encryptedmedia/html_media_element_encrypted_media.cc
                Line 386, Patchset 42 (Latest): if (element.IsHTMLVideoElement()) {
                Dale Curtis . unresolved

                Don't run this until after l.406?

                Open in Gerrit

                Related details

                Attention is currently required from:
                Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
                Gerrit-Comment-Date: Wed, 12 Nov 2025 18:38:02 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                Comment-In-Reply-To: Vikram Pasupathy <vpasu...@chromium.org>
                Comment-In-Reply-To: Dale Curtis <dalec...@chromium.org>
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Sangbaek Park (Gerrit)

                unread,
                Nov 12, 2025, 2:41:09 PM (15 hours ago) Nov 12
                to Vikram Pasupathy, Dale Curtis, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
                Attention needed from Vikram Pasupathy and Xiaohan Wang

                Sangbaek Park added 1 comment

                File third_party/blink/renderer/core/html/media/media_custom_controls_fullscreen_detector.cc
                Line 204, Patchset 42 (Latest): int ratio_in_percent =
                static_cast<int>(entries.back()->intersectionRatio() * 100);
                Sangbaek Park . unresolved

                nit: move into if-block

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Vikram Pasupathy
                • Xiaohan Wang
                Gerrit-Attention: Xiaohan Wang <xhw...@chromium.org>
                Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
                Gerrit-Comment-Date: Wed, 12 Nov 2025 19:40:59 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Vikram Pasupathy (Gerrit)

                unread,
                Nov 12, 2025, 5:16:10 PM (12 hours ago) Nov 12
                to Dale Curtis, Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
                Attention needed from Dale Curtis, Sangbaek Park and Xiaohan Wang

                Vikram Pasupathy added 10 comments

                File media/mojo/mojom/media_metrics_provider.mojom
                Line 68, Patchset 42: SetIntersectionRatioFinalV1(int32 ratio_in_percent);
                Dale Curtis . resolved

                V1 doesn't make much sense in this context. Are you planning a V2 or something later? Otherwise lets just call these SetFinalIntersectionRatio and SetInitialIntersectionRatio.

                Vikram Pasupathy

                Yeah, planning on adding a V2 and hopefully working to make videos better in V2. (Or, repurposing other existing logic, but in any case, we want to make it clear the data is from the V1 observer).

                File third_party/blink/renderer/core/html/media/html_video_element.h
                Line 289, Patchset 42: bool did_report_first_api_call_ratio_ = false;
                Dale Curtis . resolved

                Seems unnecessary with optional fields?

                Vikram Pasupathy

                Removed.

                Line 54, Patchset 42: friend class HTMLMediaElementEncryptedMedia;
                Dale Curtis . resolved

                This doesn't seem like the right pattern for this use case. Why friend versus another pattern?

                Vikram Pasupathy

                Done

                File third_party/blink/renderer/core/html/media/html_video_element.cc
                Line 114, Patchset 42: custom_controls_fullscreen_detector_->SetIntersectionUpdateCallback(
                Dale Curtis . resolved

                Why use a callback setter if you're just going to poll the value? Just add an accessor on the detector?

                Vikram Pasupathy

                Done

                Line 848, Patchset 42: if (GetWebMediaPlayer()) {
                Dale Curtis . resolved

                `if (auto* wmp = GetWebMediaPlayer())`

                Vikram Pasupathy

                Done

                Line 864, Patchset 42: if (GetWebMediaPlayer()) {
                Dale Curtis . resolved

                `if (auto* wmp = GetWebMediaPlayer())`

                Vikram Pasupathy

                Done

                Line 885, Patchset 42: if (GetWebMediaPlayer() && latest_intersection_ratio_percent_.has_value()) {
                Dale Curtis . resolved

                `if (auto* wmp = GetWebMediaPlayer(); wmp && ...`

                Vikram Pasupathy

                Done

                File third_party/blink/renderer/core/html/media/media_custom_controls_fullscreen_detector.cc
                Line 132, Patchset 42: intersection_update_callback_ = std::move(callback);
                Dale Curtis . resolved

                DCHECK it's not already set.

                Vikram Pasupathy

                Done

                Line 204, Patchset 42: int ratio_in_percent =

                static_cast<int>(entries.back()->intersectionRatio() * 100);
                Sangbaek Park . resolved

                nit: move into if-block

                Vikram Pasupathy

                Changed the logic, so this no longer applies.

                File third_party/blink/renderer/modules/encryptedmedia/html_media_element_encrypted_media.cc
                Line 386, Patchset 42: if (element.IsHTMLVideoElement()) {
                Dale Curtis . resolved

                Don't run this until after l.406?

                Vikram Pasupathy

                Done

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Dale Curtis
                • Sangbaek Park
                • Xiaohan Wang
                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: I5caed8d9241867800d86231d46dc845bd717c4ff
                  Gerrit-Change-Number: 6961946
                  Gerrit-PatchSet: 43
                  Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
                  Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
                  Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: Xiaohan Wang <xhw...@chromium.org>
                  Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
                  Gerrit-Attention: Sangbaek Park <sangba...@chromium.org>
                  Gerrit-Attention: Xiaohan Wang <xhw...@chromium.org>
                  Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
                  Gerrit-Comment-Date: Wed, 12 Nov 2025 22:15:58 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: No
                  Comment-In-Reply-To: Sangbaek Park <sangba...@chromium.org>
                  Comment-In-Reply-To: Dale Curtis <dalec...@chromium.org>
                  satisfied_requirement
                  unsatisfied_requirement
                  open
                  diffy

                  Dale Curtis (Gerrit)

                  unread,
                  Nov 12, 2025, 7:01:33 PM (11 hours ago) Nov 12
                  to Vikram Pasupathy, Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
                  Attention needed from Sangbaek Park, Vikram Pasupathy and Xiaohan Wang

                  Dale Curtis added 1 comment

                  File media/mojo/mojom/media_metrics_provider.mojom
                  Line 68, Patchset 42: SetIntersectionRatioFinalV1(int32 ratio_in_percent);
                  Dale Curtis . unresolved

                  V1 doesn't make much sense in this context. Are you planning a V2 or something later? Otherwise lets just call these SetFinalIntersectionRatio and SetInitialIntersectionRatio.

                  Vikram Pasupathy

                  Yeah, planning on adding a V2 and hopefully working to make videos better in V2. (Or, repurposing other existing logic, but in any case, we want to make it clear the data is from the V1 observer).

                  Dale Curtis

                  Wouldn't that all happen behind the scenes though? I.e., we don't need the method names to have V1 in them, just the UKM entry?

                  I'd still recommend using `SetFinalIntersectionRatioV1` and `SetInitialIntersectionRatioV1` since the readability is better IMHO.

                  Open in Gerrit

                  Related details

                  Attention is currently required from:
                  • Sangbaek Park
                  • Vikram Pasupathy
                  • Xiaohan Wang
                  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: I5caed8d9241867800d86231d46dc845bd717c4ff
                    Gerrit-Change-Number: 6961946
                    Gerrit-PatchSet: 43
                    Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
                    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
                    Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: Xiaohan Wang <xhw...@chromium.org>
                    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
                    Gerrit-Attention: Sangbaek Park <sangba...@chromium.org>
                    Gerrit-Attention: Xiaohan Wang <xhw...@chromium.org>
                    Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
                    Gerrit-Comment-Date: Thu, 13 Nov 2025 00:01:21 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    satisfied_requirement
                    unsatisfied_requirement
                    open
                    diffy

                    Vikram Pasupathy (Gerrit)

                    unread,
                    Nov 12, 2025, 8:08:59 PM (9 hours ago) Nov 12
                    to Dale Curtis, Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
                    Attention needed from Dale Curtis, Sangbaek Park and Xiaohan Wang

                    Vikram Pasupathy added 1 comment

                    File media/mojo/mojom/media_metrics_provider.mojom
                    Line 68, Patchset 42: SetIntersectionRatioFinalV1(int32 ratio_in_percent);
                    Dale Curtis . unresolved

                    V1 doesn't make much sense in this context. Are you planning a V2 or something later? Otherwise lets just call these SetFinalIntersectionRatio and SetInitialIntersectionRatio.

                    Vikram Pasupathy

                    Yeah, planning on adding a V2 and hopefully working to make videos better in V2. (Or, repurposing other existing logic, but in any case, we want to make it clear the data is from the V1 observer).

                    Dale Curtis

                    Wouldn't that all happen behind the scenes though? I.e., we don't need the method names to have V1 in them, just the UKM entry?

                    I'd still recommend using `SetFinalIntersectionRatioV1` and `SetInitialIntersectionRatioV1` since the readability is better IMHO.

                    Vikram Pasupathy

                    Modified it to your suggestion, TY!

                    Do you think the UKM fields should also be modified?

                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Dale Curtis
                    • Sangbaek Park
                    • Xiaohan Wang
                    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: I5caed8d9241867800d86231d46dc845bd717c4ff
                    Gerrit-Change-Number: 6961946
                    Gerrit-PatchSet: 44
                    Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
                    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
                    Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: Xiaohan Wang <xhw...@chromium.org>
                    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
                    Gerrit-Attention: Sangbaek Park <sangba...@chromium.org>
                    Gerrit-Attention: Xiaohan Wang <xhw...@chromium.org>
                    Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
                    Gerrit-Comment-Date: Thu, 13 Nov 2025 01:08:50 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    Comment-In-Reply-To: Dale Curtis <dalec...@chromium.org>
                    Comment-In-Reply-To: Vikram Pasupathy <vpasu...@chromium.org>
                    satisfied_requirement
                    unsatisfied_requirement
                    open
                    diffy

                    Dale Curtis (Gerrit)

                    unread,
                    Nov 12, 2025, 9:09:28 PM (8 hours ago) Nov 12
                    to Vikram Pasupathy, Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
                    Attention needed from Sangbaek Park, Vikram Pasupathy and Xiaohan Wang

                    Dale Curtis added 1 comment

                    File media/mojo/mojom/media_metrics_provider.mojom
                    Line 68, Patchset 42: SetIntersectionRatioFinalV1(int32 ratio_in_percent);
                    Dale Curtis . unresolved

                    V1 doesn't make much sense in this context. Are you planning a V2 or something later? Otherwise lets just call these SetFinalIntersectionRatio and SetInitialIntersectionRatio.

                    Vikram Pasupathy

                    Yeah, planning on adding a V2 and hopefully working to make videos better in V2. (Or, repurposing other existing logic, but in any case, we want to make it clear the data is from the V1 observer).

                    Dale Curtis

                    Wouldn't that all happen behind the scenes though? I.e., we don't need the method names to have V1 in them, just the UKM entry?

                    I'd still recommend using `SetFinalIntersectionRatioV1` and `SetInitialIntersectionRatioV1` since the readability is better IMHO.

                    Vikram Pasupathy

                    Modified it to your suggestion, TY!

                    Do you think the UKM fields should also be modified?

                    Dale Curtis

                    I'd keep them consistent. I'm still not clear on if you need the method names to contain V1 though?

                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Sangbaek Park
                    • Vikram Pasupathy
                    • Xiaohan Wang
                    Gerrit-Attention: Vikram Pasupathy <vpasu...@chromium.org>
                    Gerrit-Comment-Date: Thu, 13 Nov 2025 02:09:18 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    satisfied_requirement
                    unsatisfied_requirement
                    open
                    diffy

                    Vikram Pasupathy (Gerrit)

                    unread,
                    Nov 12, 2025, 10:27:45 PM (7 hours ago) Nov 12
                    to Dale Curtis, Sangbaek Park, Rijubrata Bhaumik, AyeAye, Chromium LUCI CQ, Chromium Metrics Reviews, chromium...@chromium.org, srirama chandra sekhar, chfreme...@chromium.org, eme-r...@chromium.org, mfoltz+wa...@chromium.org, asvitkine...@chromium.org, blink-re...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, erickun...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, jophba...@chromium.org, kinuko...@chromium.org, mfoltz...@chromium.org
                    Attention needed from Dale Curtis, Sangbaek Park and Xiaohan Wang

                    Vikram Pasupathy added 1 comment

                    File media/mojo/mojom/media_metrics_provider.mojom
                    Line 68, Patchset 42: SetIntersectionRatioFinalV1(int32 ratio_in_percent);
                    Dale Curtis . unresolved

                    V1 doesn't make much sense in this context. Are you planning a V2 or something later? Otherwise lets just call these SetFinalIntersectionRatio and SetInitialIntersectionRatio.

                    Vikram Pasupathy

                    Yeah, planning on adding a V2 and hopefully working to make videos better in V2. (Or, repurposing other existing logic, but in any case, we want to make it clear the data is from the V1 observer).

                    Dale Curtis

                    Wouldn't that all happen behind the scenes though? I.e., we don't need the method names to have V1 in them, just the UKM entry?

                    I'd still recommend using `SetFinalIntersectionRatioV1` and `SetInitialIntersectionRatioV1` since the readability is better IMHO.

                    Vikram Pasupathy

                    Modified it to your suggestion, TY!

                    Do you think the UKM fields should also be modified?

                    Dale Curtis

                    I'd keep them consistent. I'm still not clear on if you need the method names to contain V1 though?

                    Vikram Pasupathy

                    `FinalIntersectionRatio` and `InitialEncryptedIntersectionRatio`, sorry, dropped the v1, the v2 observer doesn't report an intersection ratio.

                    Open in Gerrit

                    Related details

                    Attention is currently required from:
                    • Dale Curtis
                    • Sangbaek Park
                    • Xiaohan Wang
                    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: I5caed8d9241867800d86231d46dc845bd717c4ff
                    Gerrit-Change-Number: 6961946
                    Gerrit-PatchSet: 45
                    Gerrit-Owner: Vikram Pasupathy <vpasu...@chromium.org>
                    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
                    Gerrit-Reviewer: Sangbaek Park <sangba...@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-CC: Xiaohan Wang <xhw...@chromium.org>
                    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
                    Gerrit-Attention: Sangbaek Park <sangba...@chromium.org>
                    Gerrit-Attention: Xiaohan Wang <xhw...@chromium.org>
                    Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
                    Gerrit-Comment-Date: Thu, 13 Nov 2025 03:27:30 +0000
                    Gerrit-HasComments: Yes
                    Gerrit-Has-Labels: No
                    satisfied_requirement
                    unsatisfied_requirement
                    open
                    diffy
                    Reply all
                    Reply to author
                    Forward
                    0 new messages