summaryrefslogtreecommitdiff
path: root/chromium/device/fido/bio
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/device/fido/bio')
-rw-r--r--chromium/device/fido/bio/enrollment_handler.cc7
-rw-r--r--chromium/device/fido/bio/enrollment_handler.h1
2 files changed, 5 insertions, 3 deletions
diff --git a/chromium/device/fido/bio/enrollment_handler.cc b/chromium/device/fido/bio/enrollment_handler.cc
index d3e03a5da50..91264d427be 100644
--- a/chromium/device/fido/bio/enrollment_handler.cc
+++ b/chromium/device/fido/bio/enrollment_handler.cc
@@ -9,6 +9,7 @@
#include "components/device_event_log/device_event_log.h"
#include "device/fido/fido_authenticator.h"
#include "device/fido/fido_constants.h"
+#include "device/fido/pin.h"
namespace device {
@@ -196,8 +197,10 @@ void BioEnrollmentHandler::OnHavePIN(std::string pin) {
DCHECK_EQ(state_, State::kWaitingForPIN);
state_ = State::kGettingPINToken;
authenticator_->GetPINToken(
- std::move(pin), base::BindOnce(&BioEnrollmentHandler::OnHavePINToken,
- weak_factory_.GetWeakPtr()));
+ std::move(pin), {pin::Permissions::kBioEnrollment},
+ /*rp_id=*/base::nullopt,
+ base::BindOnce(&BioEnrollmentHandler::OnHavePINToken,
+ weak_factory_.GetWeakPtr()));
}
void BioEnrollmentHandler::OnHavePINToken(
diff --git a/chromium/device/fido/bio/enrollment_handler.h b/chromium/device/fido/bio/enrollment_handler.h
index 32672020044..439d3d1fe63 100644
--- a/chromium/device/fido/bio/enrollment_handler.h
+++ b/chromium/device/fido/bio/enrollment_handler.h
@@ -18,7 +18,6 @@
#include "device/fido/fido_constants.h"
#include "device/fido/fido_discovery_factory.h"
#include "device/fido/fido_request_handler_base.h"
-#include "device/fido/pin.h"
namespace device {