[Memory Coordinator] Allow optional MemoryConsumerTraits with defaults [chromium/src : main]

0 views
Skip to first unread message

Patrick Monette (Gerrit)

unread,
Mar 17, 2026, 12:08:13 PMMar 17
to Andres Ricardo Perez, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
Attention needed from Andres Ricardo Perez

Patrick Monette added 1 comment

Patchset-level comments
File-level comment, Patchset 6 (Latest):
Patrick Monette . resolved

PTAL

Open in Gerrit

Related details

Attention is currently required from:
  • Andres Ricardo Perez
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: I99d6edb392d1fc74c5c9eb58c476e61ef4e23918
Gerrit-Change-Number: 7656607
Gerrit-PatchSet: 6
Gerrit-Owner: Patrick Monette <pmon...@chromium.org>
Gerrit-Reviewer: Andres Ricardo Perez <andres...@chromium.org>
Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Andres Ricardo Perez <andres...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Mar 2026 16:08:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Andres Ricardo Perez (Gerrit)

unread,
Mar 19, 2026, 4:31:06 PMMar 19
to Patrick Monette, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
Attention needed from Patrick Monette

Andres Ricardo Perez voted and added 7 comments

Votes added by Andres Ricardo Perez

Code-Review+1

7 comments

Patchset-level comments
Andres Ricardo Perez . resolved

This look really cool! And I like the new ergonomics of the API for creating traits.

LGTM, with some questions on the testing.

File base/memory_coordinator/traits.h
Line 195, Patchset 6 (Latest): // Prevent duplicate traits
static_assert(((internal::count_type_v<Args, Args...> == 1) && ...),
"Duplicate memory trait types provided.");
Andres Ricardo Perez . unresolved

Can we test this logic? Asking Gemini brings up no-compile tests as a tool, and I did find this: https://www.chromium.org/developers/testing/no-compile-tests/

And I see `/nc` files in [code search](https://source.chromium.org/search?q=f:%5C.nc$&ss=chromium%2Fchromium%2Fsrc:base%2F).

Line 183, Patchset 6 (Latest): constexpr MemoryConsumerTraits(Args... args)
: supports_memory_limit(get<SupportsMemoryLimit>(args...)),
Andres Ricardo Perez . unresolved

Please fix this WARNING reported by ClangTidy: check: google-explicit-constructor

constructors that are callable with a single...

check: google-explicit-constructor

constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions (https://clang.llvm.org/extra/clang-tidy/checks/google/explicit-constructor.html)

(Note: You can add `Skip-Clang-Tidy-Checks: google-explicit-constructor` footer to the CL description to skip the check)

(Lint observed on `android-clang-tidy-rel`, but not on `linux-clang-tidy-rel`)

Line 34, Patchset 6 (Latest): DECLARE_OPTIONAL_TRAIT(SupportsMemoryLimit, kYes);
Andres Ricardo Perez . unresolved

Nit: I would suggest adding a comment argument literal so that it's obvious to anyone creating a new client that these are the default values. It took me a bit to realize since the `#define` is in another header.

```suggestion
DECLARE_OPTIONAL_TRAIT(SupportsMemoryLimit, /*default_value=*/kYes);
```
File base/memory_coordinator/traits_internal.h
Line 25, Patchset 6 (Latest): // If T is not in Args..., this fires immediately.
static_assert((std::is_same_v<T, Args> || ...),
"A required memory trait is missing!");
Andres Ricardo Perez . unresolved

Same question as in `traits.cc`: Could we test this with a no-compile test?

File content/common/memory_coordinator/mojom/memory_consumer_traits_unittest.cc
Line 36, Patchset 6 (Latest): // This test assumes each trait have 3 possible values only.
Andres Ricardo Perez . unresolved

Nit: has

Line 86, Patchset 6 (Latest): const int kMaxValue = 3;
Andres Ricardo Perez . unresolved

If eventually there is a trait with more than 3 values, the test will still pass.

Is it possible to have an assert on the last iteration checking that it sets all traits to their corresponding `T::kMaxValue`?

If you'd rather not, we could have a comment in the traits definitions indicating that this test should be updated in that case.

Open in Gerrit

Related details

Attention is currently required from:
  • Patrick Monette
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: I99d6edb392d1fc74c5c9eb58c476e61ef4e23918
    Gerrit-Change-Number: 7656607
    Gerrit-PatchSet: 6
    Gerrit-Owner: Patrick Monette <pmon...@chromium.org>
    Gerrit-Reviewer: Andres Ricardo Perez <andres...@chromium.org>
    Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
    Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
    Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-CC: Stephen Chenney <sche...@chromium.org>
    Gerrit-Attention: Patrick Monette <pmon...@chromium.org>
    Gerrit-Comment-Date: Thu, 19 Mar 2026 20:31:00 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Patrick Monette (Gerrit)

    unread,
    Mar 20, 2026, 3:50:05 PMMar 20
    to Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
    Attention needed from Andres Ricardo Perez

    Patrick Monette voted and added 7 comments

    Votes added by Patrick Monette

    Commit-Queue+1

    7 comments

    Patchset-level comments
    File-level comment, Patchset 9 (Latest):
    Patrick Monette . resolved

    PTAnL

    File base/memory_coordinator/traits.h
    Line 195, Patchset 6: // Prevent duplicate traits

    static_assert(((internal::count_type_v<Args, Args...> == 1) && ...),
    "Duplicate memory trait types provided.");
    Andres Ricardo Perez . resolved

    Can we test this logic? Asking Gemini brings up no-compile tests as a tool, and I did find this: https://www.chromium.org/developers/testing/no-compile-tests/

    And I see `/nc` files in [code search](https://source.chromium.org/search?q=f:%5C.nc$&ss=chromium%2Fchromium%2Fsrc:base%2F).

    Patrick Monette

    Great idea. done.

    Line 183, Patchset 6: constexpr MemoryConsumerTraits(Args... args)
    : supports_memory_limit(get<SupportsMemoryLimit>(args...)),
    Andres Ricardo Perez . resolved

    Please fix this WARNING reported by ClangTidy: check: google-explicit-constructor

    constructors that are callable with a single...

    check: google-explicit-constructor

    constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions (https://clang.llvm.org/extra/clang-tidy/checks/google/explicit-constructor.html)

    (Note: You can add `Skip-Clang-Tidy-Checks: google-explicit-constructor` footer to the CL description to skip the check)

    (Lint observed on `android-clang-tidy-rel`, but not on `linux-clang-tidy-rel`)

    Patrick Monette

    N/A

    Line 34, Patchset 6: DECLARE_OPTIONAL_TRAIT(SupportsMemoryLimit, kYes);
    Andres Ricardo Perez . resolved

    Nit: I would suggest adding a comment argument literal so that it's obvious to anyone creating a new client that these are the default values. It took me a bit to realize since the `#define` is in another header.

    ```suggestion
    DECLARE_OPTIONAL_TRAIT(SupportsMemoryLimit, /*default_value=*/kYes);
    ```
    Patrick Monette

    I simplified the implementation. I figured out that for required traits, I just had to use a normal constructor parameter 😐

    Now default values are inline the enumeration, and I no longer need the macro.

    File base/memory_coordinator/traits_internal.h
    Line 25, Patchset 6: // If T is not in Args..., this fires immediately.

    static_assert((std::is_same_v<T, Args> || ...),
    "A required memory trait is missing!");
    Andres Ricardo Perez . resolved

    Same question as in `traits.cc`: Could we test this with a no-compile test?

    Patrick Monette

    Done

    File content/common/memory_coordinator/mojom/memory_consumer_traits_unittest.cc
    Line 36, Patchset 6: // This test assumes each trait have 3 possible values only.
    Andres Ricardo Perez . resolved

    Nit: has

    Patrick Monette

    Done

    Line 86, Patchset 6: const int kMaxValue = 3;
    Andres Ricardo Perez . resolved

    If eventually there is a trait with more than 3 values, the test will still pass.

    Is it possible to have an assert on the last iteration checking that it sets all traits to their corresponding `T::kMaxValue`?

    If you'd rather not, we could have a comment in the traits definitions indicating that this test should be updated in that case.

    Patrick Monette

    I reworked it so that 3 is no longer hardcoded, but generated from a type list.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andres Ricardo Perez
    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: I99d6edb392d1fc74c5c9eb58c476e61ef4e23918
      Gerrit-Change-Number: 7656607
      Gerrit-PatchSet: 9
      Gerrit-Owner: Patrick Monette <pmon...@chromium.org>
      Gerrit-Reviewer: Andres Ricardo Perez <andres...@chromium.org>
      Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
      Gerrit-CC: Nate Chapin <jap...@chromium.org>
      Gerrit-CC: Stephen Chenney <sche...@chromium.org>
      Gerrit-Attention: Andres Ricardo Perez <andres...@chromium.org>
      Gerrit-Comment-Date: Fri, 20 Mar 2026 19:49:59 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Andres Ricardo Perez <andres...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Andres Ricardo Perez (Gerrit)

      unread,
      Mar 23, 2026, 5:51:13 PM (11 days ago) Mar 23
      to Patrick Monette, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
      Attention needed from Patrick Monette

      Andres Ricardo Perez voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Patrick Monette
      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: I99d6edb392d1fc74c5c9eb58c476e61ef4e23918
        Gerrit-Change-Number: 7656607
        Gerrit-PatchSet: 10
        Gerrit-Owner: Patrick Monette <pmon...@chromium.org>
        Gerrit-Reviewer: Andres Ricardo Perez <andres...@chromium.org>
        Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
        Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
        Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
        Gerrit-CC: Nate Chapin <jap...@chromium.org>
        Gerrit-CC: Stephen Chenney <sche...@chromium.org>
        Gerrit-Attention: Patrick Monette <pmon...@chromium.org>
        Gerrit-Comment-Date: Mon, 23 Mar 2026 21:51:04 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Patrick Monette (Gerrit)

        unread,
        Mar 23, 2026, 5:54:12 PM (11 days ago) Mar 23
        to Chromium IPC Reviews, Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
        Attention needed from Chromium IPC Reviews

        Patrick Monette added 1 comment

        Patchset-level comments
        File-level comment, Patchset 10 (Latest):
        Patrick Monette . resolved

        +chromium IPC reviews for mojo-related files.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Chromium IPC Reviews
        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: I99d6edb392d1fc74c5c9eb58c476e61ef4e23918
        Gerrit-Change-Number: 7656607
        Gerrit-PatchSet: 10
        Gerrit-Owner: Patrick Monette <pmon...@chromium.org>
        Gerrit-Reviewer: Andres Ricardo Perez <andres...@chromium.org>
        Gerrit-Reviewer: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
        Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
        Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
        Gerrit-CC: Nate Chapin <jap...@chromium.org>
        Gerrit-CC: Stephen Chenney <sche...@chromium.org>
        Gerrit-Attention: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-Comment-Date: Mon, 23 Mar 2026 21:54:04 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        gwsq (Gerrit)

        unread,
        Mar 23, 2026, 5:57:54 PM (11 days ago) Mar 23
        to Patrick Monette, Chromium IPC Reviews, Dominic Farolino, Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
        Attention needed from Dominic Farolino

        Message from gwsq

        From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
        IPC: d...@chromium.org

        📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

        IPC reviewer(s): d...@chromium.org


        Reviewer source(s):
        d...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Dominic Farolino
        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: I99d6edb392d1fc74c5c9eb58c476e61ef4e23918
        Gerrit-Change-Number: 7656607
        Gerrit-PatchSet: 10
        Gerrit-Owner: Patrick Monette <pmon...@chromium.org>
        Gerrit-Reviewer: Andres Ricardo Perez <andres...@chromium.org>
        Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
        Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
        Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
        Gerrit-CC: Nate Chapin <jap...@chromium.org>
        Gerrit-CC: Stephen Chenney <sche...@chromium.org>
        Gerrit-CC: gwsq
        Gerrit-Attention: Dominic Farolino <d...@chromium.org>
        Gerrit-Comment-Date: Mon, 23 Mar 2026 21:57:43 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Dominic Farolino (Gerrit)

        unread,
        Mar 23, 2026, 8:10:29 PM (11 days ago) Mar 23
        to Patrick Monette, Chromium IPC Reviews, Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
        Attention needed from Patrick Monette

        Dominic Farolino voted Code-Review+1

        Code-Review+1
        Open in Gerrit

        Related details

        Attention is currently required from:
        • Patrick Monette
        Gerrit-Attention: Patrick Monette <pmon...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Mar 2026 00:10:21 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Patrick Monette (Gerrit)

        unread,
        Mar 23, 2026, 8:13:35 PM (11 days ago) Mar 23
        to Gabriel Charette, Dominic Farolino, Chromium IPC Reviews, Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
        Attention needed from Gabriel Charette

        Patrick Monette added 1 comment

        Patchset-level comments
        Patrick Monette . resolved

        +Gab for base stamp, and also parameter_pack.h hasn't been reviewed by an owner yet. And could I get owners override as well please.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Gabriel Charette
        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: I99d6edb392d1fc74c5c9eb58c476e61ef4e23918
        Gerrit-Change-Number: 7656607
        Gerrit-PatchSet: 10
        Gerrit-Owner: Patrick Monette <pmon...@chromium.org>
        Gerrit-Reviewer: Andres Ricardo Perez <andres...@chromium.org>
        Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
        Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
        Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
        Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
        Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
        Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
        Gerrit-CC: Nate Chapin <jap...@chromium.org>
        Gerrit-CC: Stephen Chenney <sche...@chromium.org>
        Gerrit-CC: gwsq
        Gerrit-Attention: Gabriel Charette <g...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Mar 2026 00:13:26 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Gabriel Charette (Gerrit)

        unread,
        Mar 24, 2026, 5:31:42 PM (10 days ago) Mar 24
        to Patrick Monette, Etienne Pierre-Doray, Gabriel Charette, Dominic Farolino, Chromium IPC Reviews, Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
        Attention needed from Etienne Pierre-Doray and Patrick Monette

        Gabriel Charette added 1 comment

        File base/memory_coordinator/traits.h
        Line 195, Patchset 10 (Latest): constexpr MemoryConsumerTraits(EstimatedMemoryUsage estimated_memory_usage,
        Gabriel Charette . unresolved

        Let's use the same mechanism as base::TaskTraits? (I like yours though but we should harmonize on the same one nonetheless?)

        + @etie...@chromium.org as C++ template traits expert

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Etienne Pierre-Doray
        • Patrick Monette
        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: I99d6edb392d1fc74c5c9eb58c476e61ef4e23918
          Gerrit-Change-Number: 7656607
          Gerrit-PatchSet: 10
          Gerrit-Owner: Patrick Monette <pmon...@chromium.org>
          Gerrit-Reviewer: Andres Ricardo Perez <andres...@chromium.org>
          Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
          Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
          Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
          Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
          Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
          Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
          Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
          Gerrit-CC: Nate Chapin <jap...@chromium.org>
          Gerrit-CC: Stephen Chenney <sche...@chromium.org>
          Gerrit-CC: gwsq
          Gerrit-Attention: Patrick Monette <pmon...@chromium.org>
          Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
          Gerrit-Comment-Date: Tue, 24 Mar 2026 21:31:34 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Patrick Monette (Gerrit)

          unread,
          Mar 25, 2026, 11:37:30 AM (9 days ago) Mar 25
          to Etienne Pierre-Doray, Gabriel Charette, Dominic Farolino, Chromium IPC Reviews, Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
          Attention needed from Etienne Pierre-Doray and Gabriel Charette

          Patrick Monette added 1 comment

          File base/memory_coordinator/traits.h
          Line 195, Patchset 10 (Latest): constexpr MemoryConsumerTraits(EstimatedMemoryUsage estimated_memory_usage,
          Gabriel Charette . unresolved

          Let's use the same mechanism as base::TaskTraits? (I like yours though but we should harmonize on the same one nonetheless?)

          + @etie...@chromium.org as C++ template traits expert

          Patrick Monette

          Here is why I like my version for my use case:
          The default value is written inline inside the enum. As someone that needs to look at the traits.h header to understand which value to pick for them, I think that's much easier to read.

          The use of ParameterPack allows me to iterate over valid values for the generation of test cases in content/common/memory_coordinator/mojom/memory_consumer_traits_unittest.cc.

          I agree that harmonizing would be great though.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Etienne Pierre-Doray
          • Gabriel Charette
          Gerrit-Attention: Gabriel Charette <g...@chromium.org>
          Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
          Gerrit-Comment-Date: Wed, 25 Mar 2026 15:37:24 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Gabriel Charette <g...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Patrick Monette (Gerrit)

          unread,
          Mar 25, 2026, 11:40:27 AM (9 days ago) Mar 25
          to Etienne Pierre-Doray, Gabriel Charette, Dominic Farolino, Chromium IPC Reviews, Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
          Attention needed from Etienne Pierre-Doray and Gabriel Charette

          Patrick Monette added 1 comment

          File base/memory_coordinator/traits.h
          Line 195, Patchset 10 (Latest): constexpr MemoryConsumerTraits(EstimatedMemoryUsage estimated_memory_usage,
          Gabriel Charette . unresolved

          Let's use the same mechanism as base::TaskTraits? (I like yours though but we should harmonize on the same one nonetheless?)

          + @etie...@chromium.org as C++ template traits expert

          Patrick Monette

          Here is why I like my version for my use case:
          The default value is written inline inside the enum. As someone that needs to look at the traits.h header to understand which value to pick for them, I think that's much easier to read.

          The use of ParameterPack allows me to iterate over valid values for the generation of test cases in content/common/memory_coordinator/mojom/memory_consumer_traits_unittest.cc.

          I agree that harmonizing would be great though.

          Patrick Monette

          I think the latter is more the "killer feature" as I could just use
          trait_helpers::GetEnum<MyEnum, MyEnum::kDefaultValue>

          Gerrit-Comment-Date: Wed, 25 Mar 2026 15:40:20 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Gabriel Charette <g...@chromium.org>
          Comment-In-Reply-To: Patrick Monette <pmon...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Patrick Monette (Gerrit)

          unread,
          Mar 27, 2026, 3:31:00 PM (7 days ago) Mar 27
          to Etienne Pierre-Doray, Gabriel Charette, Dominic Farolino, Chromium IPC Reviews, Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
          Attention needed from Gabriel Charette

          Patrick Monette added 2 comments

          Patchset-level comments
          File-level comment, Patchset 12 (Latest):
          Patrick Monette . resolved

          Gab can you take another look.

          Could use a owners override too please

          File base/memory_coordinator/traits.h
          Line 195, Patchset 10: constexpr MemoryConsumerTraits(EstimatedMemoryUsage estimated_memory_usage,
          Gabriel Charette . resolved

          Let's use the same mechanism as base::TaskTraits? (I like yours though but we should harmonize on the same one nonetheless?)

          + @etie...@chromium.org as C++ template traits expert

          Patrick Monette

          Here is why I like my version for my use case:
          The default value is written inline inside the enum. As someone that needs to look at the traits.h header to understand which value to pick for them, I think that's much easier to read.

          The use of ParameterPack allows me to iterate over valid values for the generation of test cases in content/common/memory_coordinator/mojom/memory_consumer_traits_unittest.cc.

          I agree that harmonizing would be great though.

          Patrick Monette

          I think the latter is more the "killer feature" as I could just use
          trait_helpers::GetEnum<MyEnum, MyEnum::kDefaultValue>

          Patrick Monette

          Done

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Gabriel Charette
          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: I99d6edb392d1fc74c5c9eb58c476e61ef4e23918
          Gerrit-Change-Number: 7656607
          Gerrit-PatchSet: 12
          Gerrit-Owner: Patrick Monette <pmon...@chromium.org>
          Gerrit-Reviewer: Andres Ricardo Perez <andres...@chromium.org>
          Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
          Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
          Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
          Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
          Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
          Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
          Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
          Gerrit-CC: Nate Chapin <jap...@chromium.org>
          Gerrit-CC: Stephen Chenney <sche...@chromium.org>
          Gerrit-CC: gwsq
          Gerrit-Attention: Gabriel Charette <g...@chromium.org>
          Gerrit-Comment-Date: Fri, 27 Mar 2026 19:30:42 +0000
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Gabriel Charette (Gerrit)

          unread,
          Mar 30, 2026, 9:40:31 PM (4 days ago) Mar 30
          to Patrick Monette, Etienne Pierre-Doray, Gabriel Charette, Dominic Farolino, Chromium IPC Reviews, Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
          Attention needed from Patrick Monette

          Gabriel Charette added 2 comments

          File base/memory_coordinator/traits.h
          Line 197, Patchset 13 (Latest): // that are not specified.
          Gabriel Charette . unresolved

          Give example of the expected call site pattern (does everything go in a {} list now? or just the optional args?)

          File content/renderer/memory_coordinator/last_resort_gc_policy_unittest.cc
          Line 30, Patchset 13 (Latest): base::MemoryConsumerTraits::ReleaseGCReferences::kYes);
          Gabriel Charette . unresolved

          Even this feels verbose, can we make even more traits have defaults?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Patrick Monette
          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: I99d6edb392d1fc74c5c9eb58c476e61ef4e23918
            Gerrit-Change-Number: 7656607
            Gerrit-PatchSet: 13
            Gerrit-Owner: Patrick Monette <pmon...@chromium.org>
            Gerrit-Reviewer: Andres Ricardo Perez <andres...@chromium.org>
            Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
            Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
            Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
            Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
            Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
            Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
            Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
            Gerrit-CC: Nate Chapin <jap...@chromium.org>
            Gerrit-CC: Stephen Chenney <sche...@chromium.org>
            Gerrit-CC: gwsq
            Gerrit-Attention: Patrick Monette <pmon...@chromium.org>
            Gerrit-Comment-Date: Tue, 31 Mar 2026 01:40:26 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Patrick Monette (Gerrit)

            unread,
            Mar 31, 2026, 11:19:25 AM (3 days ago) Mar 31
            to Etienne Pierre-Doray, Gabriel Charette, Dominic Farolino, Chromium IPC Reviews, Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
            Attention needed from Gabriel Charette

            Patrick Monette added 3 comments

            Patchset-level comments
            File-level comment, Patchset 14 (Latest):
            Patrick Monette . resolved

            PTAnL

            File base/memory_coordinator/traits.h
            Line 197, Patchset 13: // that are not specified.
            Gabriel Charette . resolved

            Give example of the expected call site pattern (does everything go in a {} list now? or just the optional args?)

            Patrick Monette

            Done

            File content/renderer/memory_coordinator/last_resort_gc_policy_unittest.cc
            Line 30, Patchset 13: base::MemoryConsumerTraits::ReleaseGCReferences::kYes);
            Gabriel Charette . unresolved

            Even this feels verbose, can we make even more traits have defaults?

            Patrick Monette

            I'm trying to strike a balance between verbosity and correctness.

            A good amount of the existing traits will rarely be used, as they have one specific use case in mind. Having a default makes sense for them. It'll rarely be wrongly used.

            The required traits I kept are things that will often vary per implementation of MemoryConsumer. I feel it would be dangerous to have a default for them, and have some consumers forget to specify it correctly.

            It's verbose for the tests that don't care about them, but providing a constant with a descriptive name still allows for readable code.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Gabriel Charette
            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: I99d6edb392d1fc74c5c9eb58c476e61ef4e23918
            Gerrit-Change-Number: 7656607
            Gerrit-PatchSet: 14
            Gerrit-Owner: Patrick Monette <pmon...@chromium.org>
            Gerrit-Reviewer: Andres Ricardo Perez <andres...@chromium.org>
            Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
            Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
            Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
            Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
            Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
            Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
            Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
            Gerrit-CC: Nate Chapin <jap...@chromium.org>
            Gerrit-CC: Stephen Chenney <sche...@chromium.org>
            Gerrit-CC: gwsq
            Gerrit-Attention: Gabriel Charette <g...@chromium.org>
            Gerrit-Comment-Date: Tue, 31 Mar 2026 15:19:20 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Gabriel Charette <g...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Gabriel Charette (Gerrit)

            unread,
            Mar 31, 2026, 4:04:09 PM (3 days ago) Mar 31
            to Patrick Monette, Gabriel Charette, Etienne Pierre-Doray, Dominic Farolino, Chromium IPC Reviews, Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
            Attention needed from Patrick Monette

            Gabriel Charette voted and added 2 comments

            Votes added by Gabriel Charette

            Code-Review+1

            2 comments

            Patchset-level comments
            Patrick Monette . resolved

            +Gab for base stamp, and also parameter_pack.h hasn't been reviewed by an owner yet. And could I get owners override as well please.

            Gabriel Charette

            Doesn't look like you need O-O as dom@ already stamped the non-owned files

            File content/renderer/memory_coordinator/last_resort_gc_policy_unittest.cc
            Line 30, Patchset 13: base::MemoryConsumerTraits::ReleaseGCReferences::kYes);
            Gabriel Charette . resolved

            Even this feels verbose, can we make even more traits have defaults?

            Patrick Monette

            I'm trying to strike a balance between verbosity and correctness.

            A good amount of the existing traits will rarely be used, as they have one specific use case in mind. Having a default makes sense for them. It'll rarely be wrongly used.

            The required traits I kept are things that will often vary per implementation of MemoryConsumer. I feel it would be dangerous to have a default for them, and have some consumers forget to specify it correctly.

            It's verbose for the tests that don't care about them, but providing a constant with a descriptive name still allows for readable code.

            Gabriel Charette

            Ack, I'll let you see how you want to evolve your defaults, I still feel this might be a bit much for simple consumers.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Patrick Monette
            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: I99d6edb392d1fc74c5c9eb58c476e61ef4e23918
              Gerrit-Change-Number: 7656607
              Gerrit-PatchSet: 14
              Gerrit-Owner: Patrick Monette <pmon...@chromium.org>
              Gerrit-Reviewer: Andres Ricardo Perez <andres...@chromium.org>
              Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
              Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
              Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
              Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
              Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
              Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
              Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
              Gerrit-CC: Nate Chapin <jap...@chromium.org>
              Gerrit-CC: Stephen Chenney <sche...@chromium.org>
              Gerrit-CC: gwsq
              Gerrit-Attention: Patrick Monette <pmon...@chromium.org>
              Gerrit-Comment-Date: Tue, 31 Mar 2026 20:04:00 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              open
              diffy

              Patrick Monette (Gerrit)

              unread,
              Mar 31, 2026, 4:09:57 PM (3 days ago) Mar 31
              to Gabriel Charette, Etienne Pierre-Doray, Dominic Farolino, Chromium IPC Reviews, Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org

              Patrick Monette added 2 comments

              Patchset-level comments
              Patrick Monette . resolved

              Thanks!

              File content/renderer/memory_coordinator/last_resort_gc_policy_unittest.cc
              Line 30, Patchset 13: base::MemoryConsumerTraits::ReleaseGCReferences::kYes);
              Gabriel Charette . resolved

              Even this feels verbose, can we make even more traits have defaults?

              Patrick Monette

              I'm trying to strike a balance between verbosity and correctness.

              A good amount of the existing traits will rarely be used, as they have one specific use case in mind. Having a default makes sense for them. It'll rarely be wrongly used.

              The required traits I kept are things that will often vary per implementation of MemoryConsumer. I feel it would be dangerous to have a default for them, and have some consumers forget to specify it correctly.

              It's verbose for the tests that don't care about them, but providing a constant with a descriptive name still allows for readable code.

              Gabriel Charette

              Ack, I'll let you see how you want to evolve your defaults, I still feel this might be a bit much for simple consumers.

              Patrick Monette

              For the most simple consumers (Let's say LRUCache of heap-allocated memory), we could have already defined traits that live in a utils.h header.

              The plan is to migrate all and then see if there are common patterns that could benefit from having a constant.

              Open in Gerrit

              Related details

              Attention set is empty
              Gerrit-Comment-Date: Tue, 31 Mar 2026 20:09:49 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              satisfied_requirement
              open
              diffy

              Etienne Pierre-Doray (Gerrit)

              unread,
              Apr 1, 2026, 3:13:33 PM (2 days ago) Apr 1
              to Patrick Monette, Gabriel Charette, Dominic Farolino, Chromium IPC Reviews, Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
              Attention needed from Patrick Monette

              Etienne Pierre-Doray added 1 comment

              File base/memory_coordinator/traits.h
              Line 21, Patchset 14 (Latest):namespace trait_helpers {
              Etienne Pierre-Doray . unresolved

              I feel like this should be in traits_bag.h if under trait_helpers namespace (of otherwise keep it here and use something like internal)

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Patrick Monette
              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: I99d6edb392d1fc74c5c9eb58c476e61ef4e23918
                Gerrit-Change-Number: 7656607
                Gerrit-PatchSet: 14
                Gerrit-Owner: Patrick Monette <pmon...@chromium.org>
                Gerrit-Reviewer: Andres Ricardo Perez <andres...@chromium.org>
                Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
                Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
                Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
                Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
                Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
                Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
                Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
                Gerrit-CC: Nate Chapin <jap...@chromium.org>
                Gerrit-CC: Stephen Chenney <sche...@chromium.org>
                Gerrit-CC: gwsq
                Gerrit-Attention: Patrick Monette <pmon...@chromium.org>
                Gerrit-Comment-Date: Wed, 01 Apr 2026 19:13:25 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Patrick Monette (Gerrit)

                unread,
                Apr 1, 2026, 4:07:48 PM (2 days ago) Apr 1
                to Gabriel Charette, Etienne Pierre-Doray, Dominic Farolino, Chromium IPC Reviews, Andres Ricardo Perez, Code Review Nudger, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Nate Chapin, Stephen Chenney, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, gavinp...@chromium.org, gavinp...@chromium.org, kinuko...@chromium.org, loading-re...@chromium.org, loading...@chromium.org
                Attention needed from Etienne Pierre-Doray

                Patrick Monette added 1 comment

                File base/memory_coordinator/traits.h
                Line 21, Patchset 14:namespace trait_helpers {
                Etienne Pierre-Doray . resolved

                I feel like this should be in traits_bag.h if under trait_helpers namespace (of otherwise keep it here and use something like internal)

                Patrick Monette

                Will use internal namesapce, given that there is already a concept of getting an optional enum in traits_bag.h and it would be confusing.

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Etienne Pierre-Doray
                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: I99d6edb392d1fc74c5c9eb58c476e61ef4e23918
                  Gerrit-Change-Number: 7656607
                  Gerrit-PatchSet: 16
                  Gerrit-Owner: Patrick Monette <pmon...@chromium.org>
                  Gerrit-Reviewer: Andres Ricardo Perez <andres...@chromium.org>
                  Gerrit-Reviewer: Dominic Farolino <d...@chromium.org>
                  Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
                  Gerrit-Reviewer: Gabriel Charette <g...@chromium.org>
                  Gerrit-Reviewer: Patrick Monette <pmon...@chromium.org>
                  Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
                  Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
                  Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
                  Gerrit-CC: Nate Chapin <jap...@chromium.org>
                  Gerrit-CC: Stephen Chenney <sche...@chromium.org>
                  Gerrit-CC: gwsq
                  Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
                  Gerrit-Comment-Date: Wed, 01 Apr 2026 20:07:39 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: No
                  Comment-In-Reply-To: Etienne Pierre-Doray <etie...@chromium.org>
                  satisfied_requirement
                  open
                  diffy
                  Reply all
                  Reply to author
                  Forward
                  0 new messages