[GlowUp] Round print_preview/ui/icons.html icons [chromium/src : main]

0 views
Skip to first unread message

Lei Zhang (Gerrit)

unread,
Jul 8, 2026, 4:49:45 PM (12 hours ago) Jul 8
to Emily Shack, Lei Zhang, Chromium LUCI CQ, chromium...@chromium.org, print-revi...@chromium.org
Attention needed from Emily Shack

Lei Zhang added 4 comments

File chrome/browser/resources/print_preview/data/destination.ts
Line 254, Patchset 5 (Latest): return loadTimeData.getBoolean('webuiRoundedIconsEnabled') ?
Lei Zhang . unresolved

Is a different CL going to set this boolean?

File chrome/browser/resources/print_preview/ui/icons.html
Line 5, Patchset 5 (Latest): <g id="short-edge-custom" viewBox="0 0 26 20" fill-rule="evenodd">
Lei Zhang . unresolved

Is it necessary to rename these two?

Line 15, Patchset 5 (Latest): These icons are copied from Polymer's iron-icons and kept in sorted order.
Lei Zhang . unresolved

Just to double check, does this comment still hold?

Line 18, Patchset 5 (Latest): <g id="business-old"><path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"></path></g>
Lei Zhang . unresolved

There's no naming conflict, so why rename the pre-existing icons? If the "-old" suffix is meant to be an indicator to mark the icons for future deletion, then how about adding a TODO instead?

Open in Gerrit

Related details

Attention is currently required from:
  • Emily Shack
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: Id2eb1cf4d9203ba91033d27b49452b1feafc2fad
Gerrit-Change-Number: 8048847
Gerrit-PatchSet: 5
Gerrit-Owner: Emily Shack <ems...@chromium.org>
Gerrit-Reviewer: Emily Shack <ems...@chromium.org>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Emily Shack <ems...@chromium.org>
Gerrit-Comment-Date: Wed, 08 Jul 2026 20:49:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Emily Shack (Gerrit)

unread,
Jul 8, 2026, 5:58:01 PM (11 hours ago) Jul 8
to Lei Zhang, Chromium LUCI CQ, chromium...@chromium.org, print-revi...@chromium.org
Attention needed from Lei Zhang

Emily Shack added 4 comments

File chrome/browser/resources/print_preview/data/destination.ts
Line 254, Patchset 5 (Latest): return loadTimeData.getBoolean('webuiRoundedIconsEnabled') ?
Lei Zhang . resolved

Is a different CL going to set this boolean?

Emily Shack
File chrome/browser/resources/print_preview/ui/icons.html
Line 5, Patchset 5 (Latest): <g id="short-edge-custom" viewBox="0 0 26 20" fill-rule="evenodd">
Lei Zhang . unresolved

Is it necessary to rename these two?

Emily Shack

Yes. See https://docs.google.com/document/d/1QoI-9OzCHkxlKtDPHunUT66c1wKHwEsQqB5cx_kEpBQ/edit?usp=sharing, a big part of this effort is making it easy to bulk-update icons going forward, which means following a consistent naming schema. The -custom suffix indicates these icons don't map to anything on go/icons and therefore should not be subject to bulk updates. Without this suffix, it would be ambiguous to bulk update scripts whether this icon was meant to be custom or just hasn't had its naming standardized yet.

Line 15, Patchset 5 (Latest): These icons are copied from Polymer's iron-icons and kept in sorted order.
Lei Zhang . resolved

Just to double check, does this comment still hold?

Emily Shack

My assumption is that this refers to icons in the cr:foo namespace, and those are slated for update as well though I don't have a CL out for that yet (I'm in the process of updating over 600 WebUI icons across likely ~40-ish CLs). These icons are also still in sorted order. So, I think this comment should hold.

Line 18, Patchset 5 (Latest): <g id="business-old"><path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"></path></g>
Lei Zhang . unresolved

There's no naming conflict, so why rename the pre-existing icons? If the "-old" suffix is meant to be an indicator to mark the icons for future deletion, then how about adding a TODO instead?

Emily Shack

Because there are so many WebUI icons (over 600) most of this is being done via scripts vs. manually. It's much easier from a bulk update perspective to categorically add the -old suffix to everything and then add new icons with the correct naming, as well as later deleting everything with the -old suffix during cleanup, vs. keeping the original name of some icons alongside TODOs. Also, this matches how the corresponding Views icon migration (rolling out in M150) was done. Do you have concerns about renaming these?

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
  • 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: Id2eb1cf4d9203ba91033d27b49452b1feafc2fad
Gerrit-Change-Number: 8048847
Gerrit-PatchSet: 5
Gerrit-Owner: Emily Shack <ems...@chromium.org>
Gerrit-Reviewer: Emily Shack <ems...@chromium.org>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Lei Zhang <the...@chromium.org>
Gerrit-Comment-Date: Wed, 08 Jul 2026 21:57:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Lei Zhang <the...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Lei Zhang (Gerrit)

unread,
Jul 8, 2026, 6:14:18 PM (11 hours ago) Jul 8
to Emily Shack, Lei Zhang, Chromium LUCI CQ, chromium...@chromium.org, print-revi...@chromium.org
Attention needed from Emily Shack

Lei Zhang voted and added 2 comments

Votes added by Lei Zhang

Code-Review+1

2 comments

File chrome/browser/resources/print_preview/ui/icons.html
Line 5, Patchset 5 (Latest): <g id="short-edge-custom" viewBox="0 0 26 20" fill-rule="evenodd">
Lei Zhang . unresolved

Is it necessary to rename these two?

Emily Shack

Yes. See https://docs.google.com/document/d/1QoI-9OzCHkxlKtDPHunUT66c1wKHwEsQqB5cx_kEpBQ/edit?usp=sharing, a big part of this effort is making it easy to bulk-update icons going forward, which means following a consistent naming schema. The -custom suffix indicates these icons don't map to anything on go/icons and therefore should not be subject to bulk updates. Without this suffix, it would be ambiguous to bulk update scripts whether this icon was meant to be custom or just hasn't had its naming standardized yet.

Lei Zhang

Thanks for the details to help me understand this is not just churn. This is a sign that the CL description is too vague. Some issues:

1. Not everyone has access to go/chrome-icon-modernization-dd, so how do future readers figure out what is going on and what this CL does?
2. Reading the TL;DR on go/chrome-icon-modernization-dd doesn't cover this.

Having a detailed CL description that explains the details of this CL would make this clearer.

Line 18, Patchset 5 (Latest): <g id="business-old"><path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"></path></g>
Lei Zhang . resolved

There's no naming conflict, so why rename the pre-existing icons? If the "-old" suffix is meant to be an indicator to mark the icons for future deletion, then how about adding a TODO instead?

Emily Shack

Because there are so many WebUI icons (over 600) most of this is being done via scripts vs. manually. It's much easier from a bulk update perspective to categorically add the -old suffix to everything and then add new icons with the correct naming, as well as later deleting everything with the -old suffix during cleanup, vs. keeping the original name of some icons alongside TODOs. Also, this matches how the corresponding Views icon migration (rolling out in M150) was done. Do you have concerns about renaming these?

Lei Zhang

When I wrote the comment initially, I had no idea what the intent was. (See other comment about CL description.) I was also not involved in the Views icon migration, so this is unfamiliar to me. If this is the norm, then ok.

Out of curiosity, is the use of the "-old" suffix documented anywhere? Is there a task filed for their deletion?

Open in Gerrit

Related details

Attention is currently required from:
  • Emily Shack
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id2eb1cf4d9203ba91033d27b49452b1feafc2fad
Gerrit-Change-Number: 8048847
Gerrit-PatchSet: 5
Gerrit-Owner: Emily Shack <ems...@chromium.org>
Gerrit-Reviewer: Emily Shack <ems...@chromium.org>
Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
Gerrit-Attention: Emily Shack <ems...@chromium.org>
Gerrit-Comment-Date: Wed, 08 Jul 2026 22:14:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Lei Zhang <the...@chromium.org>
Comment-In-Reply-To: Emily Shack <ems...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Emily Shack (Gerrit)

unread,
Jul 8, 2026, 6:33:53 PM (10 hours ago) Jul 8
to Lei Zhang, Chromium LUCI CQ, chromium...@chromium.org, print-revi...@chromium.org

Emily Shack added 2 comments

File chrome/browser/resources/print_preview/ui/icons.html
Line 5, Patchset 5: <g id="short-edge-custom" viewBox="0 0 26 20" fill-rule="evenodd">
Lei Zhang . resolved

Is it necessary to rename these two?

Emily Shack

Yes. See https://docs.google.com/document/d/1QoI-9OzCHkxlKtDPHunUT66c1wKHwEsQqB5cx_kEpBQ/edit?usp=sharing, a big part of this effort is making it easy to bulk-update icons going forward, which means following a consistent naming schema. The -custom suffix indicates these icons don't map to anything on go/icons and therefore should not be subject to bulk updates. Without this suffix, it would be ambiguous to bulk update scripts whether this icon was meant to be custom or just hasn't had its naming standardized yet.

Lei Zhang

Thanks for the details to help me understand this is not just churn. This is a sign that the CL description is too vague. Some issues:

1. Not everyone has access to go/chrome-icon-modernization-dd, so how do future readers figure out what is going on and what this CL does?
2. Reading the TL;DR on go/chrome-icon-modernization-dd doesn't cover this.

Having a detailed CL description that explains the details of this CL would make this clearer.

Emily Shack

Opened up go/chrome-icon-modernization-dd to all of Alphabet and added to the TL;DR to clarify both the suffixes and the intent to enable future bulk updates. Also expanded on this in the CL description.

Line 18, Patchset 5: <g id="business-old"><path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"></path></g>
Lei Zhang . resolved

There's no naming conflict, so why rename the pre-existing icons? If the "-old" suffix is meant to be an indicator to mark the icons for future deletion, then how about adding a TODO instead?

Emily Shack

Because there are so many WebUI icons (over 600) most of this is being done via scripts vs. manually. It's much easier from a bulk update perspective to categorically add the -old suffix to everything and then add new icons with the correct naming, as well as later deleting everything with the -old suffix during cleanup, vs. keeping the original name of some icons alongside TODOs. Also, this matches how the corresponding Views icon migration (rolling out in M150) was done. Do you have concerns about renaming these?

Lei Zhang

When I wrote the comment initially, I had no idea what the intent was. (See other comment about CL description.) I was also not involved in the Views icon migration, so this is unfamiliar to me. If this is the norm, then ok.

Out of curiosity, is the use of the "-old" suffix documented anywhere? Is there a task filed for their deletion?

Emily Shack

Updated the design doc to make this more explicit. Removal is tracked here: crbug.com/532681362

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id2eb1cf4d9203ba91033d27b49452b1feafc2fad
    Gerrit-Change-Number: 8048847
    Gerrit-PatchSet: 6
    Gerrit-Owner: Emily Shack <ems...@chromium.org>
    Gerrit-Reviewer: Emily Shack <ems...@chromium.org>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Comment-Date: Wed, 08 Jul 2026 22:33:40 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    open
    diffy

    Emily Shack (Gerrit)

    unread,
    Jul 8, 2026, 6:33:59 PM (10 hours ago) Jul 8
    to Lei Zhang, Chromium LUCI CQ, chromium...@chromium.org, print-revi...@chromium.org

    Emily Shack voted Commit-Queue+2

    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id2eb1cf4d9203ba91033d27b49452b1feafc2fad
    Gerrit-Change-Number: 8048847
    Gerrit-PatchSet: 6
    Gerrit-Owner: Emily Shack <ems...@chromium.org>
    Gerrit-Reviewer: Emily Shack <ems...@chromium.org>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    Gerrit-Comment-Date: Wed, 08 Jul 2026 22:33:46 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Jul 8, 2026, 6:37:36 PM (10 hours ago) Jul 8
    to Emily Shack, Lei Zhang, chromium...@chromium.org, print-revi...@chromium.org

    Chromium LUCI CQ submitted the change

    Unreviewed changes

    5 is the latest approved patch-set.
    No files were changed between the latest approved patch-set and the submitted one.

    Change information

    Commit message:
    [GlowUp] Round print_preview/ui/icons.html icons

    See go/chrome-icon-modernization-dd. This is part of a larger effort to
    standardize icon naming, enabling easier bulk updates in the future, as
    well as applying 100% roundedness to all existing icons.
    Bug: 511303545
    Change-Id: Id2eb1cf4d9203ba91033d27b49452b1feafc2fad
    Reviewed-by: Lei Zhang <the...@chromium.org>
    Commit-Queue: Emily Shack <ems...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1659101}
    Files:
    • M chrome/browser/resources/print_preview/data/destination.ts
    • M chrome/browser/resources/print_preview/ui/destination_select.ts
    • M chrome/browser/resources/print_preview/ui/duplex_settings.ts
    • M chrome/browser/resources/print_preview/ui/header.html.ts
    • M chrome/browser/resources/print_preview/ui/header.ts
    • M chrome/browser/resources/print_preview/ui/icons.html
    • M chrome/test/data/webui/print_preview/destination_select_test.ts
    Change size: S
    Delta: 7 files changed, 34 insertions(+), 12 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Lei Zhang
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id2eb1cf4d9203ba91033d27b49452b1feafc2fad
    Gerrit-Change-Number: 8048847
    Gerrit-PatchSet: 7
    Gerrit-Owner: Emily Shack <ems...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Emily Shack <ems...@chromium.org>
    Gerrit-Reviewer: Lei Zhang <the...@chromium.org>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages