OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/login/easy_unlock/bootstrap_manager.h" | 5 #include "chrome/browser/chromeos/login/easy_unlock/bootstrap_manager.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/prefs/pref_registry_simple.h" | 9 #include "base/prefs/pref_registry_simple.h" |
8 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
9 #include "base/prefs/scoped_user_pref_update.h" | 11 #include "base/prefs/scoped_user_pref_update.h" |
10 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h" | 13 #include "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h" |
12 #include "components/user_manager/known_user.h" | 14 #include "components/user_manager/known_user.h" |
13 | 15 |
14 namespace chromeos { | 16 namespace chromeos { |
15 | 17 |
16 namespace { | 18 namespace { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 for (size_t i = 0; i < users->GetSize(); ++i) { | 82 for (size_t i = 0; i < users->GetSize(); ++i) { |
81 std::string current_user; | 83 std::string current_user; |
82 if (users->GetString(i, ¤t_user) && | 84 if (users->GetString(i, ¤t_user) && |
83 account_id.GetUserEmail() == current_user) | 85 account_id.GetUserEmail() == current_user) |
84 return true; | 86 return true; |
85 } | 87 } |
86 return false; | 88 return false; |
87 } | 89 } |
88 | 90 |
89 } // namespace chromeos | 91 } // namespace chromeos |
OLD | NEW |