Apply favicon theming consistently in bookmark menus [chromium/src : main]

0 views
Skip to first unread message

qian zhuoyu (Gerrit)

unread,
Jan 11, 2026, 8:42:08 PM (2 days ago) Jan 11
to Darryl James, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Darryl James

qian zhuoyu voted and added 1 comment

Votes added by qian zhuoyu

Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
qian zhuoyu . resolved

Hello Darryl,
Can you please have a look at this change?
Thank you!

Open in Gerrit

Related details

Attention is currently required from:
  • Darryl James
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: Ia0df2ac16223b1cb7cae116c41d11a29ca9275ca
Gerrit-Change-Number: 7389045
Gerrit-PatchSet: 1
Gerrit-Owner: qian zhuoyu <zhuoy...@microsoft.com>
Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
Gerrit-Reviewer: qian zhuoyu <zhuoy...@microsoft.com>
Gerrit-Attention: Darryl James <dlj...@chromium.org>
Gerrit-Comment-Date: Mon, 12 Jan 2026 01:41:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Darryl James (Gerrit)

unread,
Jan 12, 2026, 2:31:51 PM (2 days ago) Jan 12
to qian zhuoyu, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from qian zhuoyu

Darryl James voted and added 1 comment

Votes added by Darryl James

Code-Review+1

1 comment

Patchset-level comments
Darryl James . resolved

lgtm! Thank you!

Open in Gerrit

Related details

Attention is currently required from:
  • qian zhuoyu
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: Ia0df2ac16223b1cb7cae116c41d11a29ca9275ca
Gerrit-Change-Number: 7389045
Gerrit-PatchSet: 1
Gerrit-Owner: qian zhuoyu <zhuoy...@microsoft.com>
Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
Gerrit-Reviewer: qian zhuoyu <zhuoy...@microsoft.com>
Gerrit-Attention: qian zhuoyu <zhuoy...@microsoft.com>
Gerrit-Comment-Date: Mon, 12 Jan 2026 19:31:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Darryl James (Gerrit)

unread,
Jan 12, 2026, 2:34:01 PM (2 days ago) Jan 12
to qian zhuoyu, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from qian zhuoyu

Darryl James added 1 comment

File chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc
Line 105, Patchset 1 (Latest): DCHECK(node->is_url());
Darryl James . unresolved

There might be an issue here since the node could be a folder or URL, I would remove the DCHECK and check both paths before returning

If folder 
return folder favicon
else
return themed favicon or regular favicon for url node
Open in Gerrit

Related details

Attention is currently required from:
  • qian zhuoyu
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: Ia0df2ac16223b1cb7cae116c41d11a29ca9275ca
    Gerrit-Change-Number: 7389045
    Gerrit-PatchSet: 1
    Gerrit-Owner: qian zhuoyu <zhuoy...@microsoft.com>
    Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
    Gerrit-Reviewer: qian zhuoyu <zhuoy...@microsoft.com>
    Gerrit-Attention: qian zhuoyu <zhuoy...@microsoft.com>
    Gerrit-Comment-Date: Mon, 12 Jan 2026 19:33:41 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    qian zhuoyu (Gerrit)

    unread,
    Jan 12, 2026, 9:05:09 PM (2 days ago) Jan 12
    to Darryl James, Chromium LUCI CQ, chromium...@chromium.org
    Attention needed from Darryl James

    qian zhuoyu added 1 comment

    File chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc
    Line 105, Patchset 1 (Latest): DCHECK(node->is_url());
    Darryl James . unresolved

    There might be an issue here since the node could be a folder or URL, I would remove the DCHECK and check both paths before returning

    If folder 
    return folder favicon
    else
    return themed favicon or regular favicon for url node
    qian zhuoyu

    Thanks for the review! I believe folders won't reach this point because:

    GetFaviconForNode() is only called from BuildMenuForURLAt() (which only handles URL nodes) and BookmarkNodeFaviconChanged() (which only fires for URL nodes since folders don't have favicons).

    Even if a folder were passed, model->GetFavicon(node) would return an empty image, causing an early return before the DCHECK.

    The DCHECK serves as a safety assertion to catch any incorrect usage in debug builds. If you prefer, I could add a comment explaining this, what do you think?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Darryl James
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: Ia0df2ac16223b1cb7cae116c41d11a29ca9275ca
    Gerrit-Change-Number: 7389045
    Gerrit-PatchSet: 1
    Gerrit-Owner: qian zhuoyu <zhuoy...@microsoft.com>
    Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
    Gerrit-Reviewer: qian zhuoyu <zhuoy...@microsoft.com>
    Gerrit-Attention: Darryl James <dlj...@chromium.org>
    Gerrit-Comment-Date: Tue, 13 Jan 2026 02:04:32 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Darryl James <dlj...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Darryl James (Gerrit)

    unread,
    Jan 13, 2026, 12:07:22 PM (15 hours ago) Jan 13
    to qian zhuoyu, Chromium LUCI CQ, chromium...@chromium.org
    Attention needed from qian zhuoyu

    Darryl James added 1 comment

    File chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc
    Line 105, Patchset 1 (Latest): DCHECK(node->is_url());
    Darryl James . unresolved

    There might be an issue here since the node could be a folder or URL, I would remove the DCHECK and check both paths before returning

    If folder 
    return folder favicon
    else
    return themed favicon or regular favicon for url node
    qian zhuoyu

    Thanks for the review! I believe folders won't reach this point because:

    GetFaviconForNode() is only called from BuildMenuForURLAt() (which only handles URL nodes) and BookmarkNodeFaviconChanged() (which only fires for URL nodes since folders don't have favicons).

    Even if a folder were passed, model->GetFavicon(node) would return an empty image, causing an early return before the DCHECK.

    The DCHECK serves as a safety assertion to catch any incorrect usage in debug builds. If you prefer, I could add a comment explaining this, what do you think?

    Darryl James

    Got it - yes, in this case I recommend adding a comment explaining why the node cannot be a folder or other non-url node. Thanks for the context!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • qian zhuoyu
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: Ia0df2ac16223b1cb7cae116c41d11a29ca9275ca
    Gerrit-Change-Number: 7389045
    Gerrit-PatchSet: 1
    Gerrit-Owner: qian zhuoyu <zhuoy...@microsoft.com>
    Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
    Gerrit-Reviewer: qian zhuoyu <zhuoy...@microsoft.com>
    Gerrit-Attention: qian zhuoyu <zhuoy...@microsoft.com>
    Gerrit-Comment-Date: Tue, 13 Jan 2026 17:07:03 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: qian zhuoyu <zhuoy...@microsoft.com>
    Comment-In-Reply-To: Darryl James <dlj...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    qian zhuoyu (Gerrit)

    unread,
    12:21 AM (3 hours ago) 12:21 AM
    to Alison Gale, Darryl James, Chromium LUCI CQ, chromium...@chromium.org
    Attention needed from Alison Gale and Darryl James

    qian zhuoyu voted and added 1 comment

    Votes added by qian zhuoyu

    Commit-Queue+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 2 (Latest):
    qian zhuoyu . resolved

    Hi Alison,
    Could you please have a look at this change?
    Thanks!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alison Gale
    • Darryl James
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: Ia0df2ac16223b1cb7cae116c41d11a29ca9275ca
    Gerrit-Change-Number: 7389045
    Gerrit-PatchSet: 2
    Gerrit-Owner: qian zhuoyu <zhuoy...@microsoft.com>
    Gerrit-Reviewer: Alison Gale <ag...@chromium.org>
    Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
    Gerrit-Reviewer: qian zhuoyu <zhuoy...@microsoft.com>
    Gerrit-Attention: Darryl James <dlj...@chromium.org>
    Gerrit-Attention: Alison Gale <ag...@chromium.org>
    Gerrit-Comment-Date: Wed, 14 Jan 2026 05:20:59 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    qian zhuoyu (Gerrit)

    unread,
    12:21 AM (3 hours ago) 12:21 AM
    to Alison Gale, Darryl James, Chromium LUCI CQ, chromium...@chromium.org
    Attention needed from Alison Gale and Darryl James

    qian zhuoyu added 1 comment

    File chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc
    Line 105, Patchset 1: DCHECK(node->is_url());
    Darryl James . resolved

    There might be an issue here since the node could be a folder or URL, I would remove the DCHECK and check both paths before returning

    If folder 
    return folder favicon
    else
    return themed favicon or regular favicon for url node
    qian zhuoyu

    Thanks for the review! I believe folders won't reach this point because:

    GetFaviconForNode() is only called from BuildMenuForURLAt() (which only handles URL nodes) and BookmarkNodeFaviconChanged() (which only fires for URL nodes since folders don't have favicons).

    Even if a folder were passed, model->GetFavicon(node) would return an empty image, causing an early return before the DCHECK.

    The DCHECK serves as a safety assertion to catch any incorrect usage in debug builds. If you prefer, I could add a comment explaining this, what do you think?

    Darryl James

    Got it - yes, in this case I recommend adding a comment explaining why the node cannot be a folder or other non-url node. Thanks for the context!

    qian zhuoyu

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alison Gale
    • Darryl James
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement 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: Ia0df2ac16223b1cb7cae116c41d11a29ca9275ca
      Gerrit-Change-Number: 7389045
      Gerrit-PatchSet: 2
      Gerrit-Owner: qian zhuoyu <zhuoy...@microsoft.com>
      Gerrit-Reviewer: Alison Gale <ag...@chromium.org>
      Gerrit-Reviewer: Darryl James <dlj...@chromium.org>
      Gerrit-Reviewer: qian zhuoyu <zhuoy...@microsoft.com>
      Gerrit-Attention: Darryl James <dlj...@chromium.org>
      Gerrit-Attention: Alison Gale <ag...@chromium.org>
      Gerrit-Comment-Date: Wed, 14 Jan 2026 05:21:31 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages