Move rather than copying the encoded page state when possible [chromium/src : main]

0 views
Skip to first unread message

Daniel Cheng (Gerrit)

unread,
Jan 29, 2026, 8:06:20 PM (yesterday) Jan 29
to Daniel Cheng, Alex Moshchuk, Nate Chapin, Olga Gerchikov, Menard, Alexis, AyeAye, Chromium LUCI CQ, alexmo...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, blink-revie...@chromium.org, gavinp...@chromium.org, android-web...@chromium.org, creis...@chromium.org, blink-...@chromium.org, navigation...@chromium.org, blink-re...@chromium.org
Attention needed from Alex Moshchuk

Daniel Cheng added 1 comment

File content/browser/renderer_host/navigation_request.cc
Line 3401, Patchset 1: std::move(commit_params_->page_state));
Daniel Cheng . unresolved

I'm kind of uncertain about this particular change. It's really an obfuscated way of saying "clear this if it's not empty"... so we could just write `commit_params_->page_state.empty()`. But that's also kind of a layering violation... so I just left it as-is and wrote a long comment.

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Moshchuk
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: I5363c422a93819fd11434d952c57a30f13e2efc5
Gerrit-Change-Number: 7534121
Gerrit-PatchSet: 2
Gerrit-Owner: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-Attention: Alex Moshchuk <ale...@chromium.org>
Gerrit-Comment-Date: Fri, 30 Jan 2026 01:06:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Alex Moshchuk (Gerrit)

unread,
10:42 PM (1 hour ago) 10:42 PM
to Daniel Cheng, Nate Chapin, Olga Gerchikov, Menard, Alexis, AyeAye, Chromium LUCI CQ, alexmo...@chromium.org, kinuko...@chromium.org, loading...@chromium.org, blink-revie...@chromium.org, gavinp...@chromium.org, android-web...@chromium.org, creis...@chromium.org, blink-...@chromium.org, navigation...@chromium.org, blink-re...@chromium.org
Attention needed from Daniel Cheng

Alex Moshchuk voted and added 2 comments

Votes added by Alex Moshchuk

Code-Review+1

2 comments

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Alex Moshchuk . resolved

LGTM

File content/browser/renderer_host/navigation_request.cc
Line 3401, Patchset 1: std::move(commit_params_->page_state));
Daniel Cheng . resolved

I'm kind of uncertain about this particular change. It's really an obfuscated way of saying "clear this if it's not empty"... so we could just write `commit_params_->page_state.empty()`. But that's also kind of a layering violation... so I just left it as-is and wrote a long comment.

Alex Moshchuk

Yeah, agreed with your assessment. The new comment helps clarify what's going on, at least.

Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Cheng
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: I5363c422a93819fd11434d952c57a30f13e2efc5
    Gerrit-Change-Number: 7534121
    Gerrit-PatchSet: 3
    Gerrit-Owner: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Alex Moshchuk <ale...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-CC: Menard, Alexis <alexis...@intel.com>
    Gerrit-CC: Nate Chapin <jap...@chromium.org>
    Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
    Gerrit-Comment-Date: Sat, 31 Jan 2026 03:42:02 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Daniel Cheng <dch...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages