features.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  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. #ifndef COMPONENTS_SEND_TAB_TO_SELF_FEATURES_H_
  5. #define COMPONENTS_SEND_TAB_TO_SELF_FEATURES_H_
  6. #include "base/feature_list.h"
  7. #include "build/build_config.h"
  8. #include "build/buildflag.h"
  9. namespace send_tab_to_self {
  10. // If this feature is enabled and a signed-out user attempts to share a tab,
  11. // they will see a promo to sign-in.
  12. inline constexpr base::Feature kSendTabToSelfSigninPromo{
  13. "SendTabToSelfSigninPromo", base::FEATURE_DISABLED_BY_DEFAULT};
  14. #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_IOS)
  15. // If this feature is enabled, show received tabs in a new UI next to the
  16. // profile icon rather than in a system notification.
  17. //
  18. // V2 is the default on desktop and the V1 code path has been deleted there, so
  19. // this base::Feature no longer exists on desktop platforms.
  20. inline constexpr base::Feature kSendTabToSelfV2{
  21. "SendTabToSelfV2", base::FEATURE_DISABLED_BY_DEFAULT};
  22. #endif // BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_IOS)
  23. } // namespace send_tab_to_self
  24. #endif // COMPONENTS_SEND_TAB_TO_SELF_FEATURES_H_