Commit e5265358 authored by Sarah Hu's avatar Sarah Hu Committed by Commit Bot

cros: Reset local object path when fingerprint enrollment is done.

Fingerprint enrollment session is ended automatically when it is complete.
Local object path needs to be reset for this case.

Bug: 834448
Change-Id: Ieedf5f2f9fbf6ef7b3519414ef792b5cb54ba163
Reviewed-on: https://chromium-review.googlesource.com/1162906Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: Xiaoyin Hu <xiaoyinh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580907}
parent bc970771
......@@ -347,6 +347,10 @@ class BiodClientImpl : public BiodClient {
int percent_complete =
protobuf.has_percent_complete() ? protobuf.percent_complete() : -1;
// Enroll session is ended automatically when enrollment is done.
if (protobuf.done())
current_enroll_session_path_.reset();
for (auto& observer : observers_) {
observer.BiodEnrollScanDoneReceived(protobuf.scan_result(),
protobuf.done(), percent_complete);
......
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