login_types.cc 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ash/public/cpp/login_types.h"
  5. #include "ash/components/proximity_auth/public/mojom/auth_type.mojom.h"
  6. namespace ash {
  7. EasyUnlockIconInfo::EasyUnlockIconInfo() = default;
  8. EasyUnlockIconInfo::EasyUnlockIconInfo(const EasyUnlockIconInfo& other) =
  9. default;
  10. EasyUnlockIconInfo::EasyUnlockIconInfo(EasyUnlockIconInfo&& other) = default;
  11. EasyUnlockIconInfo::~EasyUnlockIconInfo() = default;
  12. EasyUnlockIconInfo& EasyUnlockIconInfo::operator=(
  13. const EasyUnlockIconInfo& other) = default;
  14. EasyUnlockIconInfo& EasyUnlockIconInfo::operator=(EasyUnlockIconInfo&& other) =
  15. default;
  16. bool DeviceEnterpriseInfo::operator==(const DeviceEnterpriseInfo& other) const {
  17. return other.enterprise_domain_manager == enterprise_domain_manager &&
  18. other.active_directory_managed == active_directory_managed &&
  19. other.management_device_mode == management_device_mode;
  20. }
  21. InputMethodItem::InputMethodItem() = default;
  22. InputMethodItem::InputMethodItem(const InputMethodItem& other) = default;
  23. InputMethodItem::InputMethodItem(InputMethodItem&& other) = default;
  24. InputMethodItem::~InputMethodItem() = default;
  25. InputMethodItem& InputMethodItem::operator=(const InputMethodItem& other) =
  26. default;
  27. InputMethodItem& InputMethodItem::operator=(InputMethodItem&& other) = default;
  28. LocaleItem::LocaleItem() = default;
  29. LocaleItem::LocaleItem(const LocaleItem& other) = default;
  30. LocaleItem::LocaleItem(LocaleItem&& other) = default;
  31. LocaleItem::~LocaleItem() = default;
  32. LocaleItem& LocaleItem::operator=(const LocaleItem& other) = default;
  33. LocaleItem& LocaleItem::operator=(LocaleItem&& other) = default;
  34. bool LocaleItem::operator==(const LocaleItem& other) const {
  35. return language_code == other.language_code && title == other.title &&
  36. group_name == other.group_name;
  37. }
  38. PublicAccountInfo::PublicAccountInfo() = default;
  39. PublicAccountInfo::PublicAccountInfo(const PublicAccountInfo& other) = default;
  40. PublicAccountInfo::PublicAccountInfo(PublicAccountInfo&& other) = default;
  41. PublicAccountInfo::~PublicAccountInfo() = default;
  42. PublicAccountInfo& PublicAccountInfo::operator=(
  43. const PublicAccountInfo& other) = default;
  44. PublicAccountInfo& PublicAccountInfo::operator=(PublicAccountInfo&& other) =
  45. default;
  46. LoginUserInfo::LoginUserInfo()
  47. : auth_type(proximity_auth::mojom::AuthType::OFFLINE_PASSWORD) {}
  48. LoginUserInfo::LoginUserInfo(const LoginUserInfo& other) = default;
  49. LoginUserInfo::LoginUserInfo(LoginUserInfo&& other) = default;
  50. LoginUserInfo::~LoginUserInfo() = default;
  51. LoginUserInfo& LoginUserInfo::operator=(const LoginUserInfo& other) = default;
  52. LoginUserInfo& LoginUserInfo::operator=(LoginUserInfo&& other) = default;
  53. AuthDisabledData::AuthDisabledData() = default;
  54. AuthDisabledData::AuthDisabledData(AuthDisabledReason reason,
  55. const base::Time& auth_reenabled_time,
  56. const base::TimeDelta& device_used_time,
  57. bool disable_lock_screen_media)
  58. : reason(reason),
  59. auth_reenabled_time(auth_reenabled_time),
  60. device_used_time(device_used_time),
  61. disable_lock_screen_media(disable_lock_screen_media) {}
  62. AuthDisabledData::AuthDisabledData(const AuthDisabledData& other) = default;
  63. AuthDisabledData::AuthDisabledData(AuthDisabledData&& other) = default;
  64. AuthDisabledData::~AuthDisabledData() = default;
  65. AuthDisabledData& AuthDisabledData::operator=(const AuthDisabledData& other) =
  66. default;
  67. AuthDisabledData& AuthDisabledData::operator=(AuthDisabledData&& other) =
  68. default;
  69. SecurityTokenPinRequest::SecurityTokenPinRequest() = default;
  70. SecurityTokenPinRequest::SecurityTokenPinRequest(SecurityTokenPinRequest&&) =
  71. default;
  72. SecurityTokenPinRequest& SecurityTokenPinRequest::operator=(
  73. SecurityTokenPinRequest&&) = default;
  74. SecurityTokenPinRequest::~SecurityTokenPinRequest() = default;
  75. } // namespace ash