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

Disable fingerprint for secondary users.

Bug: 875540
Change-Id: I9825bb9cefb642ed8e3e4bd3587e065f026eb923
Reviewed-on: https://chromium-review.googlesource.com/1194980Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Xiaoyin Hu <xiaoyinh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#587292}
parent e12ac758
...@@ -101,6 +101,11 @@ bool IsFingerprintEnabled() { ...@@ -101,6 +101,11 @@ bool IsFingerprintEnabled() {
if (enable_for_testing_) if (enable_for_testing_)
return true; return true;
// Disable fingerprint for secondary user.
user_manager::UserManager* user_manager = user_manager::UserManager::Get();
if (user_manager->GetActiveUser() != user_manager->GetPrimaryUser())
return false;
// Enable fingerprint unlock only if the switch is present. // Enable fingerprint unlock only if the switch is present.
return base::FeatureList::IsEnabled(features::kQuickUnlockFingerprint); return base::FeatureList::IsEnabled(features::kQuickUnlockFingerprint);
} }
......
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