browser_features.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // Copyright 2018 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. // This file defines the browser-specific base::FeatureList features that are
  5. // not shared with other process types.
  6. #ifndef CHROME_BROWSER_BROWSER_FEATURES_H_
  7. #define CHROME_BROWSER_BROWSER_FEATURES_H_
  8. #include "base/feature_list.h"
  9. #include "base/metrics/field_trial_params.h"
  10. #include "build/build_config.h"
  11. #include "build/chromeos_buildflags.h"
  12. namespace features {
  13. // All features in alphabetical order. The features should be documented
  14. // alongside the definition of their values in the .cc file.
  15. extern const base::Feature kClosedTabCache;
  16. extern const base::Feature kColorProviderRedirectionForThemeProvider;
  17. extern const base::Feature kDestroyProfileOnBrowserClose;
  18. extern const base::Feature kDestroySystemProfiles;
  19. extern const base::Feature kDevToolsTabTarget;
  20. extern const base::Feature kNukeProfileBeforeCreateMultiAsync;
  21. extern const base::Feature kPromoBrowserCommands;
  22. extern const char kBrowserCommandIdParam[];
  23. extern const base::Feature kUseManagementService;
  24. #if BUILDFLAG(IS_CHROMEOS_ASH)
  25. extern const base::Feature kQuickSettingsPWANotifications;
  26. #endif
  27. #if BUILDFLAG(IS_CHROMEOS)
  28. extern const base::Feature kDoubleTapToZoomInTabletMode;
  29. #endif
  30. #if BUILDFLAG(IS_MAC)
  31. extern const base::Feature kEnableUniveralLinks;
  32. #endif
  33. #if !BUILDFLAG(IS_ANDROID)
  34. extern const base::Feature kCopyLinkToText;
  35. extern const base::Feature kMuteNotificationSnoozeAction;
  36. #endif
  37. extern const base::Feature kSandboxExternalProtocolBlocked;
  38. extern const base::Feature kSandboxExternalProtocolBlockedWarning;
  39. extern const base::Feature kTriggerNetworkDataMigration;
  40. extern const base::Feature kWebUsbDeviceDetection;
  41. #if BUILDFLAG(IS_ANDROID)
  42. extern const base::Feature kCertificateTransparencyAndroid;
  43. #endif
  44. extern const base::Feature kLargeFaviconFromGoogle;
  45. extern const base::FeatureParam<int> kLargeFaviconFromGoogleSizeInDip;
  46. extern const base::Feature kObserverBasedPostProfileInit;
  47. extern const base::Feature kRestartNetworkServiceUnsandboxedForFailedLaunch;
  48. extern const base::Feature kKeyPinningComponentUpdater;
  49. #if BUILDFLAG(IS_WIN)
  50. extern const base::Feature kAppBoundEncryptionMetrics;
  51. #endif
  52. } // namespace features
  53. #endif // CHROME_BROWSER_BROWSER_FEATURES_H_