| 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_impl.h" | 5 #include "chrome/browser/chromeos/login/users/chrome_user_manager_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <cstddef> | 8 #include <cstddef> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "ash/multi_profile_uma.h" | 12 #include "ash/multi_profile_uma.h" |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
| 15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/format_macros.h" | 17 #include "base/format_macros.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/metrics/histogram.h" | 19 #include "base/metrics/histogram.h" |
| 20 #include "base/prefs/pref_registry_simple.h" | |
| 21 #include "base/prefs/pref_service.h" | |
| 22 #include "base/prefs/scoped_user_pref_update.h" | |
| 23 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
| 24 #include "base/strings/stringprintf.h" | 21 #include "base/strings/stringprintf.h" |
| 25 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
| 26 #include "base/sys_info.h" | 23 #include "base/sys_info.h" |
| 27 #include "base/task_runner.h" | 24 #include "base/task_runner.h" |
| 28 #include "base/thread_task_runner_handle.h" | 25 #include "base/thread_task_runner_handle.h" |
| 29 #include "base/values.h" | 26 #include "base/values.h" |
| 30 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
| 31 #include "chrome/browser/chrome_notification_types.h" | 28 #include "chrome/browser/chrome_notification_types.h" |
| 32 #include "chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h" | 29 #include "chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 55 #include "chrome/common/chrome_switches.h" | 52 #include "chrome/common/chrome_switches.h" |
| 56 #include "chrome/common/crash_keys.h" | 53 #include "chrome/common/crash_keys.h" |
| 57 #include "chrome/common/pref_names.h" | 54 #include "chrome/common/pref_names.h" |
| 58 #include "chrome/grit/theme_resources.h" | 55 #include "chrome/grit/theme_resources.h" |
| 59 #include "chromeos/chromeos_switches.h" | 56 #include "chromeos/chromeos_switches.h" |
| 60 #include "chromeos/cryptohome/async_method_caller.h" | 57 #include "chromeos/cryptohome/async_method_caller.h" |
| 61 #include "chromeos/login/login_state.h" | 58 #include "chromeos/login/login_state.h" |
| 62 #include "chromeos/login/user_names.h" | 59 #include "chromeos/login/user_names.h" |
| 63 #include "chromeos/settings/cros_settings_names.h" | 60 #include "chromeos/settings/cros_settings_names.h" |
| 64 #include "chromeos/timezone/timezone_resolver.h" | 61 #include "chromeos/timezone/timezone_resolver.h" |
| 62 #include "components/prefs/pref_registry_simple.h" |
| 63 #include "components/prefs/pref_service.h" |
| 64 #include "components/prefs/scoped_user_pref_update.h" |
| 65 #include "components/session_manager/core/session_manager.h" | 65 #include "components/session_manager/core/session_manager.h" |
| 66 #include "components/signin/core/account_id/account_id.h" | 66 #include "components/signin/core/account_id/account_id.h" |
| 67 #include "components/user_manager/known_user.h" | 67 #include "components/user_manager/known_user.h" |
| 68 #include "components/user_manager/remove_user_delegate.h" | 68 #include "components/user_manager/remove_user_delegate.h" |
| 69 #include "components/user_manager/user_image/user_image.h" | 69 #include "components/user_manager/user_image/user_image.h" |
| 70 #include "components/user_manager/user_type.h" | 70 #include "components/user_manager/user_type.h" |
| 71 #include "content/public/browser/browser_thread.h" | 71 #include "content/public/browser/browser_thread.h" |
| 72 #include "content/public/browser/notification_service.h" | 72 #include "content/public/browser/notification_service.h" |
| 73 #include "policy/policy_constants.h" | 73 #include "policy/policy_constants.h" |
| 74 #include "ui/base/l10n/l10n_util.h" | 74 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1294 base::Bind(ResolveLocale, locale, base::Unretained(out_resolved_locale)), | 1294 base::Bind(ResolveLocale, locale, base::Unretained(out_resolved_locale)), |
| 1295 on_resolved_callback); | 1295 on_resolved_callback); |
| 1296 } | 1296 } |
| 1297 | 1297 |
| 1298 bool ChromeUserManagerImpl::IsValidDefaultUserImageId(int image_index) const { | 1298 bool ChromeUserManagerImpl::IsValidDefaultUserImageId(int image_index) const { |
| 1299 return image_index >= 0 && | 1299 return image_index >= 0 && |
| 1300 image_index < chromeos::default_user_image::kDefaultImagesCount; | 1300 image_index < chromeos::default_user_image::kDefaultImagesCount; |
| 1301 } | 1301 } |
| 1302 | 1302 |
| 1303 } // namespace chromeos | 1303 } // namespace chromeos |
| OLD | NEW |