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 "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 5 #include "chrome/browser/chromeos/login/users/chrome_user_manager.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 26 matching lines...) Expand all Loading... |
37 #include "chrome/browser/chromeos/profiles/multiprofiles_session_aborted_dialog.
h" | 37 #include "chrome/browser/chromeos/profiles/multiprofiles_session_aborted_dialog.
h" |
38 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 38 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
39 #include "chrome/browser/chromeos/session_length_limiter.h" | 39 #include "chrome/browser/chromeos/session_length_limiter.h" |
40 #include "chrome/browser/profiles/profile.h" | 40 #include "chrome/browser/profiles/profile.h" |
41 #include "chrome/browser/supervised_user/chromeos/manager_password_service_facto
ry.h" | 41 #include "chrome/browser/supervised_user/chromeos/manager_password_service_facto
ry.h" |
42 #include "chrome/browser/supervised_user/chromeos/supervised_user_password_servi
ce_factory.h" | 42 #include "chrome/browser/supervised_user/chromeos/supervised_user_password_servi
ce_factory.h" |
43 #include "chrome/common/chrome_constants.h" | 43 #include "chrome/common/chrome_constants.h" |
44 #include "chrome/common/chrome_switches.h" | 44 #include "chrome/common/chrome_switches.h" |
45 #include "chrome/common/crash_keys.h" | 45 #include "chrome/common/crash_keys.h" |
46 #include "chrome/common/pref_names.h" | 46 #include "chrome/common/pref_names.h" |
| 47 #include "chrome/grit/theme_resources.h" |
47 #include "chromeos/chromeos_switches.h" | 48 #include "chromeos/chromeos_switches.h" |
48 #include "chromeos/login/user_names.h" | 49 #include "chromeos/login/user_names.h" |
49 #include "chromeos/settings/cros_settings_names.h" | 50 #include "chromeos/settings/cros_settings_names.h" |
50 #include "components/session_manager/core/session_manager.h" | 51 #include "components/session_manager/core/session_manager.h" |
51 #include "components/user_manager/user_image/user_image.h" | 52 #include "components/user_manager/user_image/user_image.h" |
52 #include "components/user_manager/user_type.h" | 53 #include "components/user_manager/user_type.h" |
53 #include "content/public/browser/browser_thread.h" | 54 #include "content/public/browser/browser_thread.h" |
54 #include "content/public/browser/notification_service.h" | 55 #include "content/public/browser/notification_service.h" |
55 #include "grit/theme_resources.h" | |
56 #include "policy/policy_constants.h" | 56 #include "policy/policy_constants.h" |
57 #include "ui/base/resource/resource_bundle.h" | 57 #include "ui/base/resource/resource_bundle.h" |
58 #include "ui/wm/core/wm_core_switches.h" | 58 #include "ui/wm/core/wm_core_switches.h" |
59 | 59 |
60 using content::BrowserThread; | 60 using content::BrowserThread; |
61 | 61 |
62 namespace chromeos { | 62 namespace chromeos { |
63 namespace { | 63 namespace { |
64 | 64 |
65 // A vector pref of the the regular users known on this device, arranged in LRU | 65 // A vector pref of the the regular users known on this device, arranged in LRU |
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 if ((users + GetUsersAdmittedForMultiProfile().size()) > 1) | 1006 if ((users + GetUsersAdmittedForMultiProfile().size()) > 1) |
1007 ash::MultiProfileUMA::RecordUserCount(users); | 1007 ash::MultiProfileUMA::RecordUserCount(users); |
1008 } | 1008 } |
1009 | 1009 |
1010 base::debug::SetCrashKeyValue( | 1010 base::debug::SetCrashKeyValue( |
1011 crash_keys::kNumberOfUsers, | 1011 crash_keys::kNumberOfUsers, |
1012 base::StringPrintf("%" PRIuS, GetLoggedInUsers().size())); | 1012 base::StringPrintf("%" PRIuS, GetLoggedInUsers().size())); |
1013 } | 1013 } |
1014 | 1014 |
1015 } // namespace chromeos | 1015 } // namespace chromeos |
OLD | NEW |