1 // Copyright 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "chromeos/login/auth/password_visibility_utils.h"
6 
7 #include "components/user_manager/known_user.h"
8 
9 namespace chromeos {
10 
11 namespace password_visibility {
12 
AccountHasUserFacingPassword(const AccountId & account_id)13 bool AccountHasUserFacingPassword(const AccountId& account_id) {
14   // TODO(emaxx): Maintain this bit as more cases (e.g. Smart Cards) arise or
15   // if/when the logic for determining accounts without a user facing password
16   // is refined to reduce false negatives.
17   return !user_manager::known_user::GetIsUsingSAMLPrincipalsAPI(account_id);
18 }
19 
20 }  // namespace password_visibility
21 
22 }  // namespace chromeos
23