Spanification of base/memory/ref_counted_memory.h, etc. [chromium/src : main]

0 views
Skip to first unread message

Daniel Angulo (Gerrit)

unread,
May 22, 2026, 4:38:39 PM (6 days ago) May 22
to android-bu...@system.gserviceaccount.com, chromium...@chromium.org, Sadrul Chowdhury, gavinp...@chromium.org

Message from Daniel Angulo

Set Ready For Review

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 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: Ia2cc1f475ce183985682bc70cfbd63d1dcdd1ab3
Gerrit-Change-Number: 7834671
Gerrit-PatchSet: 4
Gerrit-Owner: Daniel Angulo <angd...@google.com>
Gerrit-CC: Sadrul Chowdhury <sad...@chromium.org>
Gerrit-Comment-Date: Fri, 22 May 2026 20:38:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Mikihito Matsuura (Gerrit)

unread,
May 26, 2026, 12:44:46 AM (3 days ago) May 26
to Daniel Angulo, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, Sadrul Chowdhury, gavinp...@chromium.org
Attention needed from Daniel Angulo

Mikihito Matsuura voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Angulo
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not 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: Ia2cc1f475ce183985682bc70cfbd63d1dcdd1ab3
    Gerrit-Change-Number: 7834671
    Gerrit-PatchSet: 4
    Gerrit-Owner: Daniel Angulo <angd...@google.com>
    Gerrit-Reviewer: Mikihito Matsuura <mi...@google.com>
    Gerrit-Attention: Daniel Angulo <angd...@google.com>
    Gerrit-Comment-Date: Tue, 26 May 2026 04:44:18 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mark Mentovai (Gerrit)

    unread,
    3:42 PM (1 hour ago) 3:42 PM
    to Daniel Angulo, Dan Clark, Chromium LUCI CQ, Mikihito Matsuura, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, Sadrul Chowdhury, gavinp...@chromium.org
    Attention needed from Dan Clark and Daniel Angulo

    Mark Mentovai added 4 comments

    File base/memory/ref_counted_memory.h
    Line 61, Patchset 4 (Latest): // The data/size members (or begin/end) give conversion to span already, but
    // we provide this operator as an optimization to combine two virtual method
    // calls into one.
    explicit operator base::span<const uint8_t>() const LIFETIME_BOUND {
    return AsSpan();
    }
    Mark Mentovai . unresolved

    Why are you promoting `AsSpan` out of `protected:` instead of using this?

    File components/sync_bookmarks/bookmark_specifics_conversions.cc
    Line 334, Patchset 4 (Latest): const auto favicon_span = base::as_chars(favicon_bytes->AsSpan());
    Mark Mentovai . unresolved

    I don’t think there’s a strong argument in favor of `auto` for this.

    File ui/base/x/selection_owner.cc
    Line 338, Patchset 4 (Latest): base::ToVector(mem->AsSpan()));
    Mark Mentovai . unresolved

    It seems like some of this’s internal span-accepting SetArrayPropertyImpl should be exposed, rather than forcing the creation of vectors when you’re already holding a span.

    Line 351, Patchset 4 (Latest): auto span = transfer->data->AsSpan().subspan(transfer->offset, chunk_length);
    Mark Mentovai . unresolved

    Same.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dan Clark
    • Daniel Angulo
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not 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: Ia2cc1f475ce183985682bc70cfbd63d1dcdd1ab3
      Gerrit-Change-Number: 7834671
      Gerrit-PatchSet: 4
      Gerrit-Owner: Daniel Angulo <angd...@google.com>
      Gerrit-Reviewer: Dan Clark <dan...@microsoft.com>
      Gerrit-Reviewer: Mikihito Matsuura <mi...@google.com>
      Gerrit-CC: Mark Mentovai <ma...@chromium.org>
      Gerrit-CC: Sadrul Chowdhury <sad...@chromium.org>
      Gerrit-Attention: Daniel Angulo <angd...@google.com>
      Gerrit-Attention: Dan Clark <dan...@microsoft.com>
      Gerrit-Comment-Date: Thu, 28 May 2026 19:41:58 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages