| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/user_manager/user_manager_base.h" | 5 #include "components/user_manager/user_manager_base.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <stddef.h> |
| 8 |
| 8 #include <set> | 9 #include <set> |
| 9 | 10 |
| 10 #include "base/bind.h" | 11 #include "base/bind.h" |
| 11 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
| 12 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 13 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 14 #include "base/format_macros.h" | 15 #include "base/format_macros.h" |
| 15 #include "base/location.h" | 16 #include "base/location.h" |
| 16 #include "base/logging.h" | 17 #include "base/logging.h" |
| 17 #include "base/macros.h" | 18 #include "base/macros.h" |
| (...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1104 } | 1105 } |
| 1105 | 1106 |
| 1106 void UserManagerBase::DeleteUser(User* user) { | 1107 void UserManagerBase::DeleteUser(User* user) { |
| 1107 const bool is_active_user = (user == active_user_); | 1108 const bool is_active_user = (user == active_user_); |
| 1108 delete user; | 1109 delete user; |
| 1109 if (is_active_user) | 1110 if (is_active_user) |
| 1110 active_user_ = nullptr; | 1111 active_user_ = nullptr; |
| 1111 } | 1112 } |
| 1112 | 1113 |
| 1113 } // namespace user_manager | 1114 } // namespace user_manager |
| OLD | NEW |