Use span-based file API in native_messaging_reader.cc [chromium/src : main]

0 views
Skip to first unread message

Jan Keitel (Gerrit)

unread,
Jan 12, 2026, 9:45:59 AM (8 days ago) Jan 12
to Joe Downing, AyeAye, Chromium LUCI CQ, chromotin...@chromium.org
Attention needed from Joe Downing

Jan Keitel voted Auto-Submit+1

Auto-Submit+1
Open in Gerrit

Related details

Attention is currently required from:
  • Joe Downing
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: Iabc07f441ea283b172ea23e84daac6ab451aa0a9
Gerrit-Change-Number: 7451404
Gerrit-PatchSet: 1
Gerrit-Owner: Jan Keitel <jke...@google.com>
Gerrit-Reviewer: Jan Keitel <jke...@google.com>
Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
Gerrit-Attention: Joe Downing <joe...@chromium.org>
Gerrit-Comment-Date: Mon, 12 Jan 2026 14:45:42 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Joe Downing (Gerrit)

unread,
Jan 12, 2026, 10:23:14 AM (8 days ago) Jan 12
to Jan Keitel, AyeAye, Chromium LUCI CQ, chromotin...@chromium.org
Attention needed from Jan Keitel

Joe Downing added 1 comment

File remoting/host/native_messaging/native_messaging_reader.cc
Line 104, Patchset 1 (Latest): if (read_result.value_or(0) != 0) {
LOG(ERROR) << "Failed to read message header, read returned "
<< read_result.value_or(0);
}
Joe Downing . unresolved

AFAICT this will treat errors as EOF since ReadAtCurrentPos returns nullopt on error so I think it would be better to provide a default of '-1' to indicate error and disambiguate from EOF.

Open in Gerrit

Related details

Attention is currently required from:
  • Jan Keitel
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: Iabc07f441ea283b172ea23e84daac6ab451aa0a9
    Gerrit-Change-Number: 7451404
    Gerrit-PatchSet: 1
    Gerrit-Owner: Jan Keitel <jke...@google.com>
    Gerrit-Reviewer: Jan Keitel <jke...@google.com>
    Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
    Gerrit-Attention: Jan Keitel <jke...@google.com>
    Gerrit-Comment-Date: Mon, 12 Jan 2026 15:23:01 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Jan Keitel (Gerrit)

    unread,
    Jan 13, 2026, 3:13:34 AM (8 days ago) Jan 13
    to Joe Downing, AyeAye, Chromium LUCI CQ, chromotin...@chromium.org
    Attention needed from Joe Downing

    Jan Keitel voted and added 1 comment

    Votes added by Jan Keitel

    Auto-Submit+1

    1 comment

    File remoting/host/native_messaging/native_messaging_reader.cc
    Line 104, Patchset 1: if (read_result.value_or(0) != 0) {

    LOG(ERROR) << "Failed to read message header, read returned "
    << read_result.value_or(0);
    }
    Joe Downing . resolved

    AFAICT this will treat errors as EOF since ReadAtCurrentPos returns nullopt on error so I think it would be better to provide a default of '-1' to indicate error and disambiguate from EOF.

    Jan Keitel

    You are right - thank you!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joe Downing
    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: Iabc07f441ea283b172ea23e84daac6ab451aa0a9
      Gerrit-Change-Number: 7451404
      Gerrit-PatchSet: 2
      Gerrit-Owner: Jan Keitel <jke...@google.com>
      Gerrit-Reviewer: Jan Keitel <jke...@google.com>
      Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
      Gerrit-Attention: Joe Downing <joe...@chromium.org>
      Gerrit-Comment-Date: Tue, 13 Jan 2026 08:13:21 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Joe Downing <joe...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Joe Downing (Gerrit)

      unread,
      Jan 13, 2026, 9:59:16 AM (7 days ago) Jan 13
      to Jan Keitel, AyeAye, Chromium LUCI CQ, chromotin...@chromium.org
      Attention needed from Jan Keitel

      Joe Downing voted

      Code-Review+1
      Commit-Queue+2
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Jan Keitel
      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: Iabc07f441ea283b172ea23e84daac6ab451aa0a9
      Gerrit-Change-Number: 7451404
      Gerrit-PatchSet: 2
      Gerrit-Owner: Jan Keitel <jke...@google.com>
      Gerrit-Reviewer: Jan Keitel <jke...@google.com>
      Gerrit-Reviewer: Joe Downing <joe...@chromium.org>
      Gerrit-Attention: Jan Keitel <jke...@google.com>
      Gerrit-Comment-Date: Tue, 13 Jan 2026 14:59:05 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Jan 13, 2026, 10:02:04 AM (7 days ago) Jan 13
      to Jan Keitel, Joe Downing, AyeAye, chromotin...@chromium.org

      Chromium LUCI CQ submitted the change

      Change information

      Commit message:
      Use span-based file API in native_messaging_reader.cc

      No (intended) functionality changes.
      Bug: 435317390
      Change-Id: Iabc07f441ea283b172ea23e84daac6ab451aa0a9
      Auto-Submit: Jan Keitel <jke...@google.com>
      Reviewed-by: Joe Downing <joe...@chromium.org>
      Commit-Queue: Joe Downing <joe...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1568377}
      Files:
      • M remoting/host/native_messaging/native_messaging_reader.cc
      Change size: S
      Delta: 1 file changed, 16 insertions(+), 10 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Joe Downing
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Iabc07f441ea283b172ea23e84daac6ab451aa0a9
      Gerrit-Change-Number: 7451404
      Gerrit-PatchSet: 3
      Gerrit-Owner: Jan Keitel <jke...@google.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages