pref_names.cc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // Copyright 2020 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/components/phonehub/pref_names.h"
  5. namespace ash {
  6. namespace phonehub {
  7. namespace prefs {
  8. // The last provided camera roll access status provided by the phone. This pref
  9. // stores the numerical value associated with the
  10. // MultideviceFeatureAccessManager::CameraRollAccessStatus enum.
  11. const char kCameraRollAccessStatus[] =
  12. "cros.phonehub.camera_roll_access_status";
  13. // The last provided notification access status provided by the phone. This pref
  14. // stores the numerical value associated with the
  15. // MultideviceFeatureAccessManager::AccessStatus enum.
  16. const char kNotificationAccessStatus[] =
  17. "cros.phonehub.notification_access_status";
  18. // The last provided reason for notification access being prohibited. This pref
  19. // stores the numerical value associated with the
  20. // MultideviceFeatureAccessManager::AccessProhibitedReason enum. This pref may
  21. // be left in an undefined state if notification access is not prohibited.
  22. const char kNotificationAccessProhibitedReason[] =
  23. "cros.phonehub.notification_access_prohibited_reason";
  24. // Whether user has completed onboarding and dismissed the UI before or if
  25. // the user has already gone through the onboarding process and has enabled the
  26. // feature. Note: The pref name is no longer accurate as there are multiple ways
  27. // the onboarding UI can be hidden. |kHideOnboardingUi| is a generic variable
  28. // name to better convey the functionality of the pref.
  29. const char kHideOnboardingUi[] =
  30. "cros.phonehub.has_completed_onboarding_before";
  31. // Whether the MultideviceSetupStateUpdater is waiting for a verified host
  32. // in order to enable the Multidevice PhoneHub feature.
  33. const char kIsAwaitingVerifiedHost[] =
  34. "cros.phonehub.is_awaiting_verified_host";
  35. // Whether the Notification access setup banner in the PhoneHub UI has
  36. // been dismissed.
  37. const char kHasDismissedSetupRequiredUi[] =
  38. "cros.phonehub.has_dismissed_setup_required_ui";
  39. // TODO(http://crbug.com/1215559): Deprecate when there are no more active Phone
  40. // Hub notification users on M89. Some users had notifications automatically
  41. // disabled when updating from M89 to M90+ because the notification feature
  42. // state went from enabled-by-default to disabled-by-default. To re-enable those
  43. // users, we once and only once notify observers if access has been granted by
  44. // the phone. Notably, the MultideviceSetupStateUpdate will decide whether or
  45. // not the notification feature should be enabled. See
  46. // MultideviceSetupStateUpdater's method
  47. // IsWaitingForAccessToInitiallyEnableNotifications() for more details.
  48. const char kNeedsOneTimeNotificationAccessUpdate[] =
  49. "cros.phonehub.needs_one_time_notification_access_update";
  50. // The last provided screen lock status provided by the phone. This pref stores
  51. // the numerical value associated with the ScreenLockManager::LockStatus enum.
  52. const char kScreenLockStatus[] = "cros.phonehub.screen_lock_status";
  53. // The last provided recent app information before the Eche disconnects. The
  54. // pref stores the vector value associated with Notification::AppMetadata.
  55. const char kRecentAppsHistory[] = "cros.phonehub.recent_apps_history";
  56. // Whether the phone supports setting up multiple features at the same time
  57. // using the FeatureSetupRequest.
  58. const char kFeatureSetupRequestSupported[] =
  59. "cros.phonehub.feature_setup_request_supported";
  60. } // namespace prefs
  61. } // namespace phonehub
  62. } // namespace ash