Follow up comments for code hygiene for crrev.com/c/6737287. [chromium/src : main]

0 views
Skip to first unread message

Lei Zhang (Gerrit)

unread,
Aug 21, 2025, 11:12:13 PMAug 21
to Stephen Nusko, Lei Zhang, AyeAye, Chromium LUCI CQ, ozone-...@chromium.org
Attention needed from Stephen Nusko

Lei Zhang added 2 comments

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Lei Zhang . resolved

Thanks for the follow-up. I defer to OWNERS.

File ui/base/resource/resource_bundle.cc
Line 171, Patchset 1 (Latest): input.size() - raw_input.size(), raw_input.data(),
Lei Zhang . unresolved

I think this is just raw_input.size(), no subtraction needed?

Open in Gerrit

Related details

Attention is currently required from:
  • Stephen Nusko
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
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: I1236e18b3c7d0a40614f32d3f7611349b5635bcb
Gerrit-Change-Number: 6871923
Gerrit-PatchSet: 1
Gerrit-Owner: Stephen Nusko <nus...@chromium.org>
Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
Gerrit-CC: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Stephen Nusko <nus...@chromium.org>
Gerrit-Comment-Date: Fri, 22 Aug 2025 03:12:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Lei Zhang (Gerrit)

unread,
Aug 21, 2025, 11:13:16 PMAug 21
to Stephen Nusko, Lei Zhang, AyeAye, Chromium LUCI CQ, ozone-...@chromium.org
Attention needed from Stephen Nusko

Lei Zhang added 1 comment

File ui/ozone/platform/drm/gpu/drm_gpu_util.cc
Line 5, Patchset 1 (Latest):#ifdef UNSAFE_BUFFERS_BUILD
Lei Zhang . unresolved

BTW, I think this can be removed, assuming the prior CL spanified everything or put the questionable bits in UNSAFE_TODOs.

Open in Gerrit

Related details

Attention is currently required from:
  • Stephen Nusko
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
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: I1236e18b3c7d0a40614f32d3f7611349b5635bcb
Gerrit-Change-Number: 6871923
Gerrit-PatchSet: 1
Gerrit-Owner: Stephen Nusko <nus...@chromium.org>
Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
Gerrit-CC: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Stephen Nusko <nus...@chromium.org>
Gerrit-Comment-Date: Fri, 22 Aug 2025 03:13:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Stephen Nusko (Gerrit)

unread,
Aug 21, 2025, 11:21:59 PMAug 21
to Lei Zhang, AyeAye, Chromium LUCI CQ, ozone-...@chromium.org
Attention needed from Lei Zhang

Stephen Nusko voted and added 3 comments

Votes added by Stephen Nusko

Commit-Queue+1

3 comments

Patchset-level comments
Lei Zhang . resolved

Thanks for the follow-up. I defer to OWNERS.

File ui/base/resource/resource_bundle.cc
Line 171, Patchset 1: input.size() - raw_input.size(), raw_input.data(),
Lei Zhang . resolved

I think this is just raw_input.size(), no subtraction needed?

Stephen Nusko

Indeed, I think the CQ would have caught this, was to quick in just updating the size part.

Line 171, Patchset 1: input.size() - raw_input.size(), raw_input.data(),
Lei Zhang . unresolved

I think this is just raw_input.size(), no subtraction needed?

Stephen Nusko

Indeed now that I look closer 😊, I assume a test would have caught this once it had the chance to run.

Open in Gerrit

Related details

Attention is currently required from:
  • Lei Zhang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
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: I1236e18b3c7d0a40614f32d3f7611349b5635bcb
Gerrit-Change-Number: 6871923
Gerrit-PatchSet: 2
Gerrit-Owner: Stephen Nusko <nus...@chromium.org>
Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
Gerrit-CC: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Lei Zhang <the...@chromium.org>
Gerrit-Comment-Date: Fri, 22 Aug 2025 03:21:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Lei Zhang <the...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Stephen Nusko (Gerrit)

unread,
Aug 22, 2025, 1:26:03 AMAug 22
to ccameron chromium, Lei Zhang, AyeAye, Chromium LUCI CQ, ozone-...@chromium.org
Attention needed from ccameron chromium

Stephen Nusko voted and added 2 comments

Votes added by Stephen Nusko

Auto-Submit+1

2 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Stephen Nusko . resolved

+ccameron@ from the initial review, a couple follow ups that were pointed out by Lei.

File ui/ozone/platform/drm/gpu/drm_gpu_util.cc
Line 5, Patchset 1:#ifdef UNSAFE_BUFFERS_BUILD
Lei Zhang . resolved

BTW, I think this can be removed, assuming the prior CL spanified everything or put the questionable bits in UNSAFE_TODOs.

Stephen Nusko

There is an auto remover we run weekly, but also I see there is some indexing into a struct which is declared in third_party that we can't spanify which still doesn't have UNSAFE_TODO around it (so likely going to fail). Thomas is is currently in the process of running [unsafe_pragma_remover](https://source.chromium.org/chromium/chromium/src/+/main:tools/clang/unsafe_pragma_rewriter/;bpv=1) to switch all file level pragmas to line based UNSAFE_TODO so I'll let that get to this one.

Open in Gerrit

Related details

Attention is currently required from:
  • ccameron chromium
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: I1236e18b3c7d0a40614f32d3f7611349b5635bcb
Gerrit-Change-Number: 6871923
Gerrit-PatchSet: 2
Gerrit-Owner: Stephen Nusko <nus...@chromium.org>
Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
Gerrit-Reviewer: ccameron chromium <ccam...@chromium.org>
Gerrit-CC: Lei Zhang <the...@chromium.org>
Gerrit-Attention: ccameron chromium <ccam...@chromium.org>
Gerrit-Comment-Date: Fri, 22 Aug 2025 05:25:26 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

ccameron chromium (Gerrit)

unread,
Aug 22, 2025, 1:29:17 AMAug 22
to Stephen Nusko, ccameron chromium, Lei Zhang, AyeAye, Chromium LUCI CQ, ozone-...@chromium.org
Attention needed from Stephen Nusko

ccameron chromium added 2 comments

Patchset-level comments
ccameron chromium . resolved

+1 on the fixes, -1 on removing the tests

File ui/ozone/platform/drm/gpu/drm_gpu_util.cc
Line 345, Patchset 2 (Parent):void ApplyCrtcColorSpaceConversion(DrmWrapper* drm,
ccameron chromium . unresolved

This is used to verify that the various DRM properties were set to the correct values in the below tests.

Maybe this should be refactored to be moved to test-only parts of the codebase.

(It's also an evolutionary dead-end with the al work replacing it)

Open in Gerrit

Related details

Attention is currently required from:
  • Stephen Nusko
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: I1236e18b3c7d0a40614f32d3f7611349b5635bcb
    Gerrit-Change-Number: 6871923
    Gerrit-PatchSet: 2
    Gerrit-Owner: Stephen Nusko <nus...@chromium.org>
    Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
    Gerrit-Reviewer: ccameron chromium <ccam...@chromium.org>
    Gerrit-CC: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: Stephen Nusko <nus...@chromium.org>
    Gerrit-Comment-Date: Fri, 22 Aug 2025 05:28:59 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Stephen Nusko (Gerrit)

    unread,
    Aug 22, 2025, 1:31:48 AMAug 22
    to ccameron chromium, Lei Zhang, AyeAye, Chromium LUCI CQ, ozone-...@chromium.org
    Attention needed from ccameron chromium

    Stephen Nusko voted and added 1 comment

    Votes added by Stephen Nusko

    Auto-Submit+1
    Commit-Queue+1

    1 comment

    File ui/ozone/platform/drm/gpu/drm_gpu_util.cc
    Line 345, Patchset 2 (Parent):void ApplyCrtcColorSpaceConversion(DrmWrapper* drm,
    ccameron chromium . resolved

    This is used to verify that the various DRM properties were set to the correct values in the below tests.

    Maybe this should be refactored to be moved to test-only parts of the codebase.

    (It's also an evolutionary dead-end with the al work replacing it)

    Stephen Nusko

    SGTM, will revert these files then and let you decide in future the approach. 😊

    Open in Gerrit

    Related details

    Attention is currently required from:
    • ccameron chromium
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    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: I1236e18b3c7d0a40614f32d3f7611349b5635bcb
    Gerrit-Change-Number: 6871923
    Gerrit-PatchSet: 4
    Gerrit-Owner: Stephen Nusko <nus...@chromium.org>
    Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
    Gerrit-Reviewer: ccameron chromium <ccam...@chromium.org>
    Gerrit-CC: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: ccameron chromium <ccam...@chromium.org>
    Gerrit-Comment-Date: Fri, 22 Aug 2025 05:31:15 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: ccameron chromium <ccam...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Stephen Nusko (Gerrit)

    unread,
    Sep 3, 2025, 12:05:04 AM (5 days ago) Sep 3
    to ccameron chromium, Lei Zhang, AyeAye, Chromium LUCI CQ, ozone-...@chromium.org
    Attention needed from ccameron chromium

    Stephen Nusko voted and added 1 comment

    Votes added by Stephen Nusko

    Commit-Queue+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 4 (Latest):
    Stephen Nusko . resolved

    Mild ping @ccam...@chromium.org, I've removed the function so this is now just a bit of hygiene fix up.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • ccameron chromium
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    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: I1236e18b3c7d0a40614f32d3f7611349b5635bcb
    Gerrit-Change-Number: 6871923
    Gerrit-PatchSet: 4
    Gerrit-Owner: Stephen Nusko <nus...@chromium.org>
    Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
    Gerrit-Reviewer: ccameron chromium <ccam...@chromium.org>
    Gerrit-CC: Lei Zhang <the...@chromium.org>
    Gerrit-Attention: ccameron chromium <ccam...@chromium.org>
    Gerrit-Comment-Date: Wed, 03 Sep 2025 04:04:39 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages