OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/user_manager_impl.h" | 5 #include "chrome/browser/chromeos/login/user_manager_impl.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "ash/multi_profile_uma.h" | 10 #include "ash/multi_profile_uma.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 #include "chromeos/cryptohome/async_method_caller.h" | 62 #include "chromeos/cryptohome/async_method_caller.h" |
63 #include "chromeos/dbus/dbus_thread_manager.h" | 63 #include "chromeos/dbus/dbus_thread_manager.h" |
64 #include "chromeos/login/login_state.h" | 64 #include "chromeos/login/login_state.h" |
65 #include "chromeos/settings/cros_settings_names.h" | 65 #include "chromeos/settings/cros_settings_names.h" |
66 #include "content/public/browser/browser_thread.h" | 66 #include "content/public/browser/browser_thread.h" |
67 #include "content/public/browser/notification_service.h" | 67 #include "content/public/browser/notification_service.h" |
68 #include "google_apis/gaia/gaia_auth_util.h" | 68 #include "google_apis/gaia/gaia_auth_util.h" |
69 #include "google_apis/gaia/google_service_auth_error.h" | 69 #include "google_apis/gaia/google_service_auth_error.h" |
70 #include "policy/policy_constants.h" | 70 #include "policy/policy_constants.h" |
71 #include "ui/base/l10n/l10n_util.h" | 71 #include "ui/base/l10n/l10n_util.h" |
72 #include "ui/views/corewm/corewm_switches.h" | 72 #include "ui/wm/core/wm_core_switches.h" |
73 | 73 |
74 using content::BrowserThread; | 74 using content::BrowserThread; |
75 | 75 |
76 namespace chromeos { | 76 namespace chromeos { |
77 namespace { | 77 namespace { |
78 | 78 |
79 // A vector pref of the the regular users known on this device, arranged in LRU | 79 // A vector pref of the the regular users known on this device, arranged in LRU |
80 // order. | 80 // order. |
81 const char kRegularUsers[] = "LoggedInUsers"; | 81 const char kRegularUsers[] = "LoggedInUsers"; |
82 | 82 |
(...skipping 1966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2049 } | 2049 } |
2050 | 2050 |
2051 void UserManagerImpl::DeleteUser(User* user) { | 2051 void UserManagerImpl::DeleteUser(User* user) { |
2052 const bool is_active_user = (user == active_user_); | 2052 const bool is_active_user = (user == active_user_); |
2053 delete user; | 2053 delete user; |
2054 if (is_active_user) | 2054 if (is_active_user) |
2055 active_user_ = NULL; | 2055 active_user_ = NULL; |
2056 } | 2056 } |
2057 | 2057 |
2058 } // namespace chromeos | 2058 } // namespace chromeos |
OLD | NEW |