[Extensions] Extract NameInfo from Extension [chromium/src : main]

0 views
Skip to first unread message

Anton Bershanskyi (Gerrit)

unread,
May 28, 2026, 8:54:39 PM (4 days ago) May 28
to Devlin Cronin, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Devlin Cronin

Anton Bershanskyi added 1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Anton Bershanskyi . resolved

Hi Devlin,
this moves parsing of `"name"` and `"short_name"` to a new `NameHandler`. Resulting CL is a bit long, but splitting the move into multiple steps does not reduce the diff that much. If you like, I can do it in two steps like `ParseAppURLs()`. Also, I believe existing tests already cover the call function order behavior sufficiently.
At a later date, I plan to add few tests for differences in `LoadName()` and `LoadShortName()` and hopefully even further down the line harmonize them.

Open in Gerrit

Related details

Attention is currently required from:
  • Devlin Cronin
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: I5bcbc5b4fa0adc98169ab6f12e19df0478398b2d
Gerrit-Change-Number: 7883323
Gerrit-PatchSet: 2
Gerrit-Owner: Anton Bershanskyi <bersh...@gmail.com>
Gerrit-Reviewer: Anton Bershanskyi <bersh...@gmail.com>
Gerrit-Reviewer: Devlin Cronin <rdevlin...@chromium.org>
Gerrit-Attention: Devlin Cronin <rdevlin...@chromium.org>
Gerrit-Comment-Date: Fri, 29 May 2026 00:54:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Devlin Cronin (Gerrit)

unread,
May 29, 2026, 4:17:44 PM (3 days ago) May 29
to Anton Bershanskyi, Devlin Cronin, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Anton Bershanskyi

Devlin Cronin added 1 comment

Patchset-level comments
Devlin Cronin . unresolved

Thanks, Anton!

I'm not sure we want to go quite this far. The motivation and purpose of ManifestHandlers is that Extension had become a monstrosity with way too much knowledge of different unrelated subsystems, including complexities from different item types (app, hosted app, etc), platform-specific, APIs, etc. We needed to move those out.

But these required / core features -- name, manifest_version, and version, arguably along with some of the other extremely-basic, API-agnostic fields like short_name, etc -- are fairly core to the item and don't introduce the same complexities the others did. I think it's safe to actually leave these here on the extension, both for the parsing and the retrieval.

WDYT?

Open in Gerrit

Related details

Attention is currently required from:
  • Anton Bershanskyi
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: I5bcbc5b4fa0adc98169ab6f12e19df0478398b2d
    Gerrit-Change-Number: 7883323
    Gerrit-PatchSet: 2
    Gerrit-Owner: Anton Bershanskyi <bersh...@gmail.com>
    Gerrit-Reviewer: Anton Bershanskyi <bersh...@gmail.com>
    Gerrit-Reviewer: Devlin Cronin <rdevlin...@chromium.org>
    Gerrit-Attention: Anton Bershanskyi <bersh...@gmail.com>
    Gerrit-Comment-Date: Fri, 29 May 2026 20:17:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Anton Bershanskyi (Gerrit)

    unread,
    2:38 PM (2 hours ago) 2:38 PM
    to Devlin Cronin, Chromium LUCI CQ, chromium...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org

    Anton Bershanskyi added 1 comment

    Patchset-level comments
    Devlin Cronin . unresolved

    Thanks, Anton!

    I'm not sure we want to go quite this far. The motivation and purpose of ManifestHandlers is that Extension had become a monstrosity with way too much knowledge of different unrelated subsystems, including complexities from different item types (app, hosted app, etc), platform-specific, APIs, etc. We needed to move those out.

    But these required / core features -- name, manifest_version, and version, arguably along with some of the other extremely-basic, API-agnostic fields like short_name, etc -- are fairly core to the item and don't introduce the same complexities the others did. I think it's safe to actually leave these here on the extension, both for the parsing and the retrieval.

    WDYT?

    Anton Bershanskyi

    This makes sense. `"name"` and `"short_name"` were the last attributes of extension manifest I wanted to move out of `Extension` class.
    If we are not moving `"name"` and `"short_name"`, then I believe now the enumeration of `ManifestHandler`-s is stable and we can simplify `ManifestRegistry` to avoid sorting `ManifestHandlers` on every process start.

    Open in Gerrit

    Related details

    Attention set is empty
    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: I5bcbc5b4fa0adc98169ab6f12e19df0478398b2d
    Gerrit-Change-Number: 7883323
    Gerrit-PatchSet: 2
    Gerrit-Owner: Anton Bershanskyi <bersh...@gmail.com>
    Gerrit-Reviewer: Anton Bershanskyi <bersh...@gmail.com>
    Gerrit-Reviewer: Devlin Cronin <rdevlin...@chromium.org>
    Gerrit-Comment-Date: Mon, 01 Jun 2026 18:37:54 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Devlin Cronin <rdevlin...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages