OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/common/chrome_features.h" | 5 #include "chrome/common/chrome_features.h" |
6 | 6 |
7 namespace features { | 7 namespace features { |
8 | 8 |
9 // All features in alphabetical order. | 9 // All features in alphabetical order. |
10 | 10 |
11 #if defined(OS_WIN) || defined(OS_MACOSX) | 11 #if defined(OS_WIN) || defined(OS_MACOSX) |
12 // Enables automatic tab discarding, when the system is in low memory state. | 12 // Enables automatic tab discarding, when the system is in low memory state. |
13 const base::Feature kAutomaticTabDiscarding{"AutomaticTabDiscarding", | 13 const base::Feature kAutomaticTabDiscarding{"AutomaticTabDiscarding", |
14 base::FEATURE_DISABLED_BY_DEFAULT}; | 14 base::FEATURE_DISABLED_BY_DEFAULT}; |
15 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 15 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
16 | 16 |
17 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_LINUX) && !defined(OS_CHROMEOS) | 17 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_LINUX) && !defined(OS_CHROMEOS) |
18 // Enables showing the "This computer will no longer receive Google Chrome | 18 // Enables showing the "This computer will no longer receive Google Chrome |
19 // updates" infobar instead of the "will soon stop receiving" infobar on | 19 // updates" infobar instead of the "will soon stop receiving" infobar on |
20 // deprecated systems. | 20 // deprecated systems. |
21 const base::Feature kLinuxObsoleteSystemIsEndOfTheLine{ | 21 const base::Feature kLinuxObsoleteSystemIsEndOfTheLine{ |
22 "LinuxObsoleteSystemIsEndOfTheLine", base::FEATURE_DISABLED_BY_DEFAULT}; | 22 "LinuxObsoleteSystemIsEndOfTheLine", base::FEATURE_DISABLED_BY_DEFAULT}; |
23 #endif | 23 #endif |
24 | 24 |
25 // Enables or disables the Material Design version of chrome://history. | 25 // Enables or disables the Material Design version of chrome://history. |
26 const base::Feature kMaterialDesignHistoryFeature { | 26 const base::Feature kMaterialDesignHistoryFeature { |
27 "MaterialDesignHistory", base::FEATURE_DISABLED_BY_DEFAULT | 27 "MaterialDesignHistory", base::FEATURE_DISABLED_BY_DEFAULT |
28 }; | 28 }; |
29 | 29 |
30 const base::Feature kReportUrlSafeSearch { | |
31 "ReportUrlSafeSearch", base::FEATURE_DISABLED_BY_DEFAULT | |
Marc Treib
2016/03/18 11:28:54
Similar to the flag names.. maybe "SafeSearchRepor
atanasova
2016/03/21 10:42:25
Done.
| |
32 }; | |
33 | |
30 #if defined(OS_CHROMEOS) | 34 #if defined(OS_CHROMEOS) |
31 // Runtime flag that indicates whether this leak detector should be enabled in | 35 // Runtime flag that indicates whether this leak detector should be enabled in |
32 // the current instance of Chrome. | 36 // the current instance of Chrome. |
33 const base::Feature kRuntimeMemoryLeakDetector{ | 37 const base::Feature kRuntimeMemoryLeakDetector{ |
34 "RuntimeMemoryLeakDetector", base::FEATURE_DISABLED_BY_DEFAULT}; | 38 "RuntimeMemoryLeakDetector", base::FEATURE_DISABLED_BY_DEFAULT}; |
35 #endif // defined(OS_CHROMEOS) | 39 #endif // defined(OS_CHROMEOS) |
36 | 40 |
37 // A new user experience for transitioning into fullscreen and mouse pointer | 41 // A new user experience for transitioning into fullscreen and mouse pointer |
38 // lock states. The name is a misnomer (for historical reasons); affects both | 42 // lock states. The name is a misnomer (for historical reasons); affects both |
39 // Views and Android builds. | 43 // Views and Android builds. |
40 const base::Feature kSimplifiedFullscreenUI{ | 44 const base::Feature kSimplifiedFullscreenUI{ |
41 "ViewsSimplifiedFullscreenUI", | 45 "ViewsSimplifiedFullscreenUI", |
42 #if defined(USE_AURA) | 46 #if defined(USE_AURA) |
43 // Windows, Linux, Chrome OS. | 47 // Windows, Linux, Chrome OS. |
44 base::FEATURE_ENABLED_BY_DEFAULT, | 48 base::FEATURE_ENABLED_BY_DEFAULT, |
45 #else | 49 #else |
46 // Mac, Android. | 50 // Mac, Android. |
47 base::FEATURE_DISABLED_BY_DEFAULT, | 51 base::FEATURE_DISABLED_BY_DEFAULT, |
48 #endif | 52 #endif |
49 }; | 53 }; |
50 | 54 |
51 } // namespace features | 55 } // namespace features |
OLD | NEW |