DevTools: Implement Smart Card EstablishContext & Release Emulation [chromium/src : main]

0 views
Skip to first unread message

Andrey Kosyakov (Gerrit)

unread,
Dec 22, 2025, 7:43:26 PM (8 days ago) Dec 22
to Paulina Gacek, Zgroza (Luke) Klimek, Patryk Chodur, Chromium LUCI CQ, chromium...@chromium.org, devtools...@chromium.org
Attention needed from Patryk Chodur, Paulina Gacek and Zgroza (Luke) Klimek

Andrey Kosyakov added 2 comments

File content/browser/devtools/protocol/smart_card_emulation_handler.cc
Line 93, Patchset 12 (Latest): return SmartCardError::kUnknown;
Andrey Kosyakov . unresolved

Passing value other then in enum should be treated as an error, we typically make the return type of these function to be `base::Expected<SmartCardError, protocol::Response>`, so it can return either a good value or an error code that would be sent to client.

Line 376, Patchset 12 (Latest): return DispatchResponse::ServerError("Request not found");
Andrey Kosyakov . unresolved

nit: here and below, this kind of errors is typically a client error than server's, so `DispatchResonse::InvalidParams(...)`

Open in Gerrit

Related details

Attention is currently required from:
  • Patryk Chodur
  • Paulina Gacek
  • Zgroza (Luke) Klimek
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: Iae05795b3680fa44b8e7f89a9f8103f872c4d158
Gerrit-Change-Number: 7264773
Gerrit-PatchSet: 12
Gerrit-Owner: Paulina Gacek <paulin...@google.com>
Gerrit-Reviewer: Patryk Chodur <pch...@google.com>
Gerrit-Reviewer: Paulina Gacek <paulin...@google.com>
Gerrit-Reviewer: Zgroza (Luke) Klimek <zgr...@chromium.org>
Gerrit-CC: Andrey Kosyakov <ca...@chromium.org>
Gerrit-Attention: Paulina Gacek <paulin...@google.com>
Gerrit-Attention: Patryk Chodur <pch...@google.com>
Gerrit-Attention: Zgroza (Luke) Klimek <zgr...@chromium.org>
Gerrit-Comment-Date: Tue, 23 Dec 2025 00:43:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Paulina Gacek (Gerrit)

unread,
Dec 29, 2025, 12:08:05 PM (yesterday) Dec 29
to Zgroza (Luke) Klimek, Patryk Chodur, Chromium LUCI CQ, chromium...@chromium.org, devtools...@chromium.org
Attention needed from Patryk Chodur and Zgroza (Luke) Klimek

Paulina Gacek added 2 comments

File content/browser/devtools/protocol/smart_card_emulation_handler.cc
Line 93, Patchset 12: return SmartCardError::kUnknown;
Andrey Kosyakov . resolved

Passing value other then in enum should be treated as an error, we typically make the return type of these function to be `base::Expected<SmartCardError, protocol::Response>`, so it can return either a good value or an error code that would be sent to client.

Paulina Gacek

Done

Line 376, Patchset 12: return DispatchResponse::ServerError("Request not found");
Andrey Kosyakov . resolved

nit: here and below, this kind of errors is typically a client error than server's, so `DispatchResonse::InvalidParams(...)`

Paulina Gacek

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Patryk Chodur
  • Zgroza (Luke) Klimek
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: Iae05795b3680fa44b8e7f89a9f8103f872c4d158
    Gerrit-Change-Number: 7264773
    Gerrit-PatchSet: 18
    Gerrit-Owner: Paulina Gacek <paulin...@google.com>
    Gerrit-Reviewer: Patryk Chodur <pch...@google.com>
    Gerrit-Reviewer: Paulina Gacek <paulin...@google.com>
    Gerrit-Reviewer: Zgroza (Luke) Klimek <zgr...@chromium.org>
    Gerrit-Attention: Patryk Chodur <pch...@google.com>
    Gerrit-Attention: Zgroza (Luke) Klimek <zgr...@chromium.org>
    Gerrit-Comment-Date: Mon, 29 Dec 2025 17:07:44 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Andrey Kosyakov <ca...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages