Commit 41f1d8d9 authored by Martin Kreichgauer's avatar Martin Kreichgauer Committed by Commit Bot

fido: log FidoDevice::Cancel() invocations to chrome://device-log

This helps with reasoning from the logs whether an outstanding CTAP2
request was cancelled, e.g. by sending CTAPHID_CANCEL.

Change-Id: I3c93cbd399a074f03821cebcfa2825b6d96b3f2d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1949037
Commit-Queue: Martin Kreichgauer <martinkr@google.com>
Commit-Queue: Adam Langley <agl@chromium.org>
Auto-Submit: Martin Kreichgauer <martinkr@google.com>
Reviewed-by: default avatarAdam Langley <agl@chromium.org>
Cr-Commit-Position: refs/heads/master@{#721150}
parent 43df615e
...@@ -109,6 +109,7 @@ class Ctap2DeviceOperation : public DeviceOperation<Request, Response> { ...@@ -109,6 +109,7 @@ class Ctap2DeviceOperation : public DeviceOperation<Request, Response> {
// |kCtap2ErrKeepAliveCancel|. // |kCtap2ErrKeepAliveCancel|.
void Cancel() override { void Cancel() override {
if (this->token_) { if (this->token_) {
FIDO_LOG(DEBUG) << "<- (cancel)";
this->device()->Cancel(*this->token_); this->device()->Cancel(*this->token_);
this->token_.reset(); this->token_.reset();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment