spanification: automatically spanify .../common/partial_circular_buffer.cc etc. [chromium/src : main]

0 views
Skip to first unread message

Stephen Nusko (Gerrit)

unread,
Jan 19, 2026, 1:28:02 AM (2 days ago) Jan 19
to Bryan Enrique Gonzalez, Tomas Gunnarsson, Daniel Angulo, Sergio Solano, Roberto Torres, Chromium LUCI CQ, Andrew Rayskiy, Rijubrata Bhaumik, Simon Hangl, AyeAye, chromium...@chromium.org, rmcelra...@chromium.org, feature-me...@chromium.org, chfreme...@chromium.org
Attention needed from Bryan Enrique Gonzalez, Daniel Angulo, Roberto Torres, Sergio Solano and Tomas Gunnarsson

Stephen Nusko added 5 comments

File components/webrtc_logging/common/partial_circular_buffer.h
Line 44, Patchset 3 (Latest): void Write(const void* buffer, uint32_t buffer_size);
Stephen Nusko . unresolved

Should we do Write while we are here to keep this file consistent?

File components/webrtc_logging/common/partial_circular_buffer.cc
Line 21, Patchset 3 (Latest): uint32_t header_size = offsetof(BufferData, data);
Stephen Nusko . unresolved

Is there any concerns about compatibility?

I.E. is it possible that a `BufferData` struct was written by a part of the binary that has a different definition?

If so offsetof could be incorrect here.

If there is none then obviously this is better (it is compile time)

Line 59, Patchset 3 (Latest): if (total_read_ >= buffer_data_->total_written)
Stephen Nusko . unresolved

does a base::spanWriter make sense here? Not entirely sure but seems similar.

Line 62, Patchset 3 (Latest): // uint8_t* buffer_uint8 = reinterpret_cast<uint8_t*>(buffer);
Stephen Nusko . unresolved

commented out code should be removed.

Line 73, Patchset 3 (Latest): UNSAFE_TODO(base::span(buffer_data_->data + position_, to_read)));
Stephen Nusko . unresolved

Should we create at the top of this a proper base::span that represents all the valid memory? And then this just copies the relevant subspan?

Then we can add a

UNSAFE_TODO in a single location.

Open in Gerrit

Related details

Attention is currently required from:
  • Bryan Enrique Gonzalez
  • Daniel Angulo
  • Roberto Torres
  • Sergio Solano
  • Tomas Gunnarsson
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: I1c0ad81dc573636c85ce93e9fe5ce099d66b5d8f
Gerrit-Change-Number: 7489519
Gerrit-PatchSet: 3
Gerrit-Owner: Bryan Enrique Gonzalez <bryanen...@google.com>
Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
Gerrit-CC: Andrew Rayskiy <green...@google.com>
Gerrit-CC: Daniel Angulo <angd...@google.com>
Gerrit-CC: Rijubrata Bhaumik <rijubrat...@intel.com>
Gerrit-CC: Roberto Torres <jr...@google.com>
Gerrit-CC: Sergio Solano <sergio...@google.com>
Gerrit-CC: Simon Hangl <sim...@google.com>
Gerrit-Attention: Bryan Enrique Gonzalez <bryanen...@google.com>
Gerrit-Attention: Tomas Gunnarsson <to...@chromium.org>
Gerrit-Attention: Daniel Angulo <angd...@google.com>
Gerrit-Attention: Sergio Solano <sergio...@google.com>
Gerrit-Attention: Roberto Torres <jr...@google.com>
Gerrit-Comment-Date: Mon, 19 Jan 2026 06:27:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Bryan Enrique Gonzalez (Gerrit)

unread,
Jan 19, 2026, 9:07:17 PM (2 days ago) Jan 19
to Stephen Nusko, Tomas Gunnarsson, Daniel Angulo, Sergio Solano, Roberto Torres, Chromium LUCI CQ, Andrew Rayskiy, Rijubrata Bhaumik, Simon Hangl, AyeAye, chromium...@chromium.org, rmcelra...@chromium.org, feature-me...@chromium.org, chfreme...@chromium.org
Attention needed from Daniel Angulo, Roberto Torres, Sergio Solano, Stephen Nusko and Tomas Gunnarsson

Bryan Enrique Gonzalez added 5 comments

File components/webrtc_logging/common/partial_circular_buffer.h
Line 44, Patchset 3: void Write(const void* buffer, uint32_t buffer_size);
Stephen Nusko . resolved

Should we do Write while we are here to keep this file consistent?

Bryan Enrique Gonzalez

Done

File components/webrtc_logging/common/partial_circular_buffer.cc
Line 21, Patchset 3: uint32_t header_size = offsetof(BufferData, data);
Stephen Nusko . unresolved

Is there any concerns about compatibility?

I.E. is it possible that a `BufferData` struct was written by a part of the binary that has a different definition?

If so offsetof could be incorrect here.

If there is none then obviously this is better (it is compile time)

Bryan Enrique Gonzalez

Given all the uses of PartialCircularBuffer [https://source.chromium.org/search?q=PartialCircularBuffer&sq=] it seems they always use the same BufferData definition.

Line 59, Patchset 3: if (total_read_ >= buffer_data_->total_written)
Stephen Nusko . unresolved

does a base::spanWriter make sense here? Not entirely sure but seems similar.

Bryan Enrique Gonzalez

we cannot add a SpanWriter as class member since it must be stack allocated :(

Line 62, Patchset 3: // uint8_t* buffer_uint8 = reinterpret_cast<uint8_t*>(buffer);
Stephen Nusko . resolved

commented out code should be removed.

Bryan Enrique Gonzalez

Done

Line 73, Patchset 3: UNSAFE_TODO(base::span(buffer_data_->data + position_, to_read)));
Stephen Nusko . resolved

Should we create at the top of this a proper base::span that represents all the valid memory? And then this just copies the relevant subspan?

Then we can add a

UNSAFE_TODO in a single location.

Bryan Enrique Gonzalez

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Angulo
  • Roberto Torres
  • Sergio Solano
  • Stephen Nusko
  • Tomas Gunnarsson
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: I1c0ad81dc573636c85ce93e9fe5ce099d66b5d8f
Gerrit-Change-Number: 7489519
Gerrit-PatchSet: 4
Gerrit-Owner: Bryan Enrique Gonzalez <bryanen...@google.com>
Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
Gerrit-CC: Andrew Rayskiy <green...@google.com>
Gerrit-CC: Daniel Angulo <angd...@google.com>
Gerrit-CC: Rijubrata Bhaumik <rijubrat...@intel.com>
Gerrit-CC: Roberto Torres <jr...@google.com>
Gerrit-CC: Sergio Solano <sergio...@google.com>
Gerrit-CC: Simon Hangl <sim...@google.com>
Gerrit-Attention: Stephen Nusko <nus...@chromium.org>
Gerrit-Attention: Tomas Gunnarsson <to...@chromium.org>
Gerrit-Attention: Daniel Angulo <angd...@google.com>
Gerrit-Attention: Sergio Solano <sergio...@google.com>
Gerrit-Attention: Roberto Torres <jr...@google.com>
Gerrit-Comment-Date: Tue, 20 Jan 2026 02:07:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Stephen Nusko <nus...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Stephen Nusko (Gerrit)

unread,
Jan 19, 2026, 10:17:54 PM (2 days ago) Jan 19
to Bryan Enrique Gonzalez, Tomas Gunnarsson, Daniel Angulo, Sergio Solano, Roberto Torres, Chromium LUCI CQ, Andrew Rayskiy, Rijubrata Bhaumik, Simon Hangl, AyeAye, chromium...@chromium.org, rmcelra...@chromium.org, feature-me...@chromium.org, chfreme...@chromium.org
Attention needed from Bryan Enrique Gonzalez, Daniel Angulo, Roberto Torres, Sergio Solano and Tomas Gunnarsson

Stephen Nusko added 5 comments

File chrome/browser/media/webrtc/webrtc_log_buffer.cc
Line 13, Patchset 4 (Latest): circular_(&buffer_[0], sizeof(buffer_), sizeof(buffer_) / 2, false),
Stephen Nusko . unresolved

The compiler is complaining that this isn't the correct format for the PartialCircularBuffer constructor.

File components/webrtc_logging/common/partial_circular_buffer.h
Line 64, Patchset 4 (Latest): uint32_t memory_buffer_size_;
uint32_t data_size_;
Stephen Nusko . unresolved

Perhaps these should be removed as well? Or at least one of them?

Line 62, Patchset 4 (Latest): raw_ptr<BufferData, DanglingUntriaged> buffer_data_;
Stephen Nusko . unresolved

You should be able to remove `buffer_data_` if you have the span?

Line 34, Patchset 4 (Latest): PartialCircularBuffer(base::span<uint8_t> buffer);
Stephen Nusko . unresolved

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

single-argument constructors must be marked ...

check: google-explicit-constructor

single-argument constructors 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` or `mac-clang-tidy-rel`)

File components/webrtc_logging/common/partial_circular_buffer_unittest.cc
Line 71, Patchset 4 (Latest): std::vector<uint8_t> buffer_;
Stephen Nusko . unresolved

The replacement for an std::unique_ptr<uint8_t[]> is a base;:HeapArray<uint8_t>

why? Because we don't need the logic about dynamically growing the std::vector.

Open in Gerrit

Related details

Attention is currently required from:
  • Bryan Enrique Gonzalez
  • Daniel Angulo
  • Roberto Torres
  • Sergio Solano
  • Tomas Gunnarsson
Gerrit-Attention: Bryan Enrique Gonzalez <bryanen...@google.com>
Gerrit-Attention: Tomas Gunnarsson <to...@chromium.org>
Gerrit-Attention: Daniel Angulo <angd...@google.com>
Gerrit-Attention: Sergio Solano <sergio...@google.com>
Gerrit-Attention: Roberto Torres <jr...@google.com>
Gerrit-Comment-Date: Tue, 20 Jan 2026 03:17:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Bryan Enrique Gonzalez (Gerrit)

unread,
Jan 20, 2026, 10:45:51 AM (15 hours ago) Jan 20
to Stephen Nusko, Tomas Gunnarsson, Daniel Angulo, Sergio Solano, Roberto Torres, Chromium LUCI CQ, Andrew Rayskiy, Rijubrata Bhaumik, Simon Hangl, AyeAye, chromium...@chromium.org, rmcelra...@chromium.org, feature-me...@chromium.org, chfreme...@chromium.org
Attention needed from Daniel Angulo, Roberto Torres, Sergio Solano, Stephen Nusko and Tomas Gunnarsson

Bryan Enrique Gonzalez added 4 comments

File chrome/browser/media/webrtc/webrtc_log_buffer.cc
Line 13, Patchset 4: circular_(&buffer_[0], sizeof(buffer_), sizeof(buffer_) / 2, false),
Stephen Nusko . resolved

The compiler is complaining that this isn't the correct format for the PartialCircularBuffer constructor.

Bryan Enrique Gonzalez

Done

File components/webrtc_logging/common/partial_circular_buffer.h
Line 64, Patchset 4: uint32_t memory_buffer_size_;
uint32_t data_size_;
Stephen Nusko . resolved

Perhaps these should be removed as well? Or at least one of them?

Bryan Enrique Gonzalez

Done

Line 62, Patchset 4: raw_ptr<BufferData, DanglingUntriaged> buffer_data_;
Stephen Nusko . unresolved

You should be able to remove `buffer_data_` if you have the span?

Bryan Enrique Gonzalez

I think we cannot remove it yet, because the fields of BufferData are being used in several places within this class. And if we remove it, we would need to cast buffer_data_span_ everytime we access the fields of BufferData.

Line 34, Patchset 4: PartialCircularBuffer(base::span<uint8_t> buffer);
Stephen Nusko . resolved

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

single-argument constructors must be marked ...

check: google-explicit-constructor

single-argument constructors 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` or `mac-clang-tidy-rel`)

Bryan Enrique Gonzalez

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Angulo
  • Roberto Torres
  • Sergio Solano
  • Stephen Nusko
  • Tomas Gunnarsson
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: I1c0ad81dc573636c85ce93e9fe5ce099d66b5d8f
Gerrit-Change-Number: 7489519
Gerrit-PatchSet: 5
Gerrit-Owner: Bryan Enrique Gonzalez <bryanen...@google.com>
Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
Gerrit-CC: Andrew Rayskiy <green...@google.com>
Gerrit-CC: Daniel Angulo <angd...@google.com>
Gerrit-CC: Rijubrata Bhaumik <rijubrat...@intel.com>
Gerrit-CC: Roberto Torres <jr...@google.com>
Gerrit-CC: Sergio Solano <sergio...@google.com>
Gerrit-CC: Simon Hangl <sim...@google.com>
Gerrit-Attention: Stephen Nusko <nus...@chromium.org>
Gerrit-Attention: Tomas Gunnarsson <to...@chromium.org>
Gerrit-Attention: Daniel Angulo <angd...@google.com>
Gerrit-Attention: Sergio Solano <sergio...@google.com>
Gerrit-Attention: Roberto Torres <jr...@google.com>
Gerrit-Comment-Date: Tue, 20 Jan 2026 15:45:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Stephen Nusko <nus...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Bryan Enrique Gonzalez (Gerrit)

unread,
Jan 20, 2026, 10:53:14 AM (15 hours ago) Jan 20
to Stephen Nusko, Tomas Gunnarsson, Daniel Angulo, Sergio Solano, Roberto Torres, Chromium LUCI CQ, Andrew Rayskiy, Rijubrata Bhaumik, Simon Hangl, AyeAye, chromium...@chromium.org, rmcelra...@chromium.org, feature-me...@chromium.org, chfreme...@chromium.org
Attention needed from Daniel Angulo, Roberto Torres, Sergio Solano, Stephen Nusko and Tomas Gunnarsson

Bryan Enrique Gonzalez added 1 comment

File components/webrtc_logging/common/partial_circular_buffer_unittest.cc
Line 71, Patchset 4: std::vector<uint8_t> buffer_;
Stephen Nusko . resolved

The replacement for an std::unique_ptr<uint8_t[]> is a base;:HeapArray<uint8_t>

why? Because we don't need the logic about dynamically growing the std::vector.

Bryan Enrique Gonzalez

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Angulo
  • Roberto Torres
  • Sergio Solano
  • Stephen Nusko
  • Tomas Gunnarsson
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: I1c0ad81dc573636c85ce93e9fe5ce099d66b5d8f
Gerrit-Change-Number: 7489519
Gerrit-PatchSet: 6
Gerrit-Owner: Bryan Enrique Gonzalez <bryanen...@google.com>
Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
Gerrit-CC: Andrew Rayskiy <green...@google.com>
Gerrit-CC: Daniel Angulo <angd...@google.com>
Gerrit-CC: Rijubrata Bhaumik <rijubrat...@intel.com>
Gerrit-CC: Roberto Torres <jr...@google.com>
Gerrit-CC: Sergio Solano <sergio...@google.com>
Gerrit-CC: Simon Hangl <sim...@google.com>
Gerrit-Attention: Stephen Nusko <nus...@chromium.org>
Gerrit-Attention: Tomas Gunnarsson <to...@chromium.org>
Gerrit-Attention: Daniel Angulo <angd...@google.com>
Gerrit-Attention: Sergio Solano <sergio...@google.com>
Gerrit-Attention: Roberto Torres <jr...@google.com>
Gerrit-Comment-Date: Tue, 20 Jan 2026 15:53:07 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Tomas Gunnarsson (Gerrit)

unread,
Jan 20, 2026, 6:24:09 PM (8 hours ago) Jan 20
to Bryan Enrique Gonzalez, Stephen Nusko, Daniel Angulo, Sergio Solano, Roberto Torres, Chromium LUCI CQ, Andrew Rayskiy, Rijubrata Bhaumik, Simon Hangl, AyeAye, chromium...@chromium.org, rmcelra...@chromium.org, feature-me...@chromium.org, chfreme...@chromium.org
Attention needed from Bryan Enrique Gonzalez, Daniel Angulo, Roberto Torres, Sergio Solano and Stephen Nusko

Tomas Gunnarsson voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Bryan Enrique Gonzalez
  • Daniel Angulo
  • Roberto Torres
  • Sergio Solano
  • Stephen Nusko
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement 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: I1c0ad81dc573636c85ce93e9fe5ce099d66b5d8f
    Gerrit-Change-Number: 7489519
    Gerrit-PatchSet: 7
    Gerrit-Owner: Bryan Enrique Gonzalez <bryanen...@google.com>
    Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
    Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
    Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
    Gerrit-CC: Andrew Rayskiy <green...@google.com>
    Gerrit-CC: Daniel Angulo <angd...@google.com>
    Gerrit-CC: Rijubrata Bhaumik <rijubrat...@intel.com>
    Gerrit-CC: Roberto Torres <jr...@google.com>
    Gerrit-CC: Sergio Solano <sergio...@google.com>
    Gerrit-CC: Simon Hangl <sim...@google.com>
    Gerrit-Attention: Bryan Enrique Gonzalez <bryanen...@google.com>
    Gerrit-Attention: Stephen Nusko <nus...@chromium.org>
    Gerrit-Attention: Daniel Angulo <angd...@google.com>
    Gerrit-Attention: Sergio Solano <sergio...@google.com>
    Gerrit-Attention: Roberto Torres <jr...@google.com>
    Gerrit-Comment-Date: Tue, 20 Jan 2026 23:23:48 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Stephen Nusko (Gerrit)

    unread,
    Jan 20, 2026, 10:39:10 PM (4 hours ago) Jan 20
    to Bryan Enrique Gonzalez, Tomas Gunnarsson, Daniel Angulo, Sergio Solano, Roberto Torres, Chromium LUCI CQ, Andrew Rayskiy, Rijubrata Bhaumik, Simon Hangl, AyeAye, chromium...@chromium.org, rmcelra...@chromium.org, feature-me...@chromium.org, chfreme...@chromium.org
    Attention needed from Bryan Enrique Gonzalez, Daniel Angulo, Roberto Torres and Sergio Solano

    Stephen Nusko voted and added 3 comments

    Votes added by Stephen Nusko

    Code-Review+1

    3 comments

    File components/webrtc_logging/common/partial_circular_buffer.h
    Line 62, Patchset 4: raw_ptr<BufferData, DanglingUntriaged> buffer_data_;
    Stephen Nusko . resolved

    You should be able to remove `buffer_data_` if you have the span?

    Bryan Enrique Gonzalez

    I think we cannot remove it yet, because the fields of BufferData are being used in several places within this class. And if we remove it, we would need to cast buffer_data_span_ everytime we access the fields of BufferData.

    Stephen Nusko

    Fair enough a bit unfortunate that we need to pay the raw_ptr cost twice.

    File components/webrtc_logging/common/partial_circular_buffer.cc
    Line 21, Patchset 3: uint32_t header_size = offsetof(BufferData, data);
    Stephen Nusko . resolved

    Is there any concerns about compatibility?

    I.E. is it possible that a `BufferData` struct was written by a part of the binary that has a different definition?

    If so offsetof could be incorrect here.

    If there is none then obviously this is better (it is compile time)

    Bryan Enrique Gonzalez

    Given all the uses of PartialCircularBuffer [https://source.chromium.org/search?q=PartialCircularBuffer&sq=] it seems they always use the same BufferData definition.

    Stephen Nusko

    Assuming there isn't anything else, but guess we'll find out when submitting 😊

    Line 59, Patchset 3: if (total_read_ >= buffer_data_->total_written)
    Stephen Nusko . resolved

    does a base::spanWriter make sense here? Not entirely sure but seems similar.

    Bryan Enrique Gonzalez

    we cannot add a SpanWriter as class member since it must be stack allocated :(

    Stephen Nusko

    Acknowledged

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Bryan Enrique Gonzalez
    • Daniel Angulo
    • Roberto Torres
    • Sergio Solano
    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: I1c0ad81dc573636c85ce93e9fe5ce099d66b5d8f
      Gerrit-Change-Number: 7489519
      Gerrit-PatchSet: 7
      Gerrit-Owner: Bryan Enrique Gonzalez <bryanen...@google.com>
      Gerrit-Reviewer: Bryan Enrique Gonzalez <bryanen...@google.com>
      Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
      Gerrit-Reviewer: Tomas Gunnarsson <to...@chromium.org>
      Gerrit-CC: Andrew Rayskiy <green...@google.com>
      Gerrit-CC: Daniel Angulo <angd...@google.com>
      Gerrit-CC: Rijubrata Bhaumik <rijubrat...@intel.com>
      Gerrit-CC: Roberto Torres <jr...@google.com>
      Gerrit-CC: Sergio Solano <sergio...@google.com>
      Gerrit-CC: Simon Hangl <sim...@google.com>
      Gerrit-Attention: Bryan Enrique Gonzalez <bryanen...@google.com>
      Gerrit-Attention: Daniel Angulo <angd...@google.com>
      Gerrit-Attention: Sergio Solano <sergio...@google.com>
      Gerrit-Attention: Roberto Torres <jr...@google.com>
      Gerrit-Comment-Date: Wed, 21 Jan 2026 03:38:42 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Bryan Enrique Gonzalez <bryanen...@google.com>
      Comment-In-Reply-To: Stephen Nusko <nus...@chromium.org>
      satisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages