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 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/common/chrome_switches.h" | 8 #include "chrome/common/chrome_switches.h" |
9 #include "extensions/features/features.h" | 9 #include "extensions/features/features.h" |
10 #include "ppapi/features/features.h" | 10 #include "ppapi/features/features.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 53 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
54 | 54 |
55 #if defined(OS_WIN) || defined(OS_LINUX) | 55 #if defined(OS_WIN) || defined(OS_LINUX) |
56 // Enables the Restart background mode optimization. When all Chrome UI is | 56 // Enables the Restart background mode optimization. When all Chrome UI is |
57 // closed and it goes in the background, allows to restart the browser to | 57 // closed and it goes in the background, allows to restart the browser to |
58 // discard memory. | 58 // discard memory. |
59 const base::Feature kBackgroundModeAllowRestart{ | 59 const base::Feature kBackgroundModeAllowRestart{ |
60 "BackgroundModeAllowRestart", base::FEATURE_DISABLED_BY_DEFAULT}; | 60 "BackgroundModeAllowRestart", base::FEATURE_DISABLED_BY_DEFAULT}; |
61 #endif // defined(OS_WIN) || defined(OS_LINUX) | 61 #endif // defined(OS_WIN) || defined(OS_LINUX) |
62 | 62 |
63 // Enables the Backspace key to navigate back in the browser, as well as | |
64 // Shift+Backspace to navigate forward. | |
65 const base::Feature kBackspaceGoesBackFeature { | |
66 "BackspaceGoesBack", base::FEATURE_DISABLED_BY_DEFAULT | |
67 }; | |
68 | |
69 // Enables or disables whether permission prompts are automatically blocked | 63 // Enables or disables whether permission prompts are automatically blocked |
70 // after the user has explicitly dismissed them too many times. | 64 // after the user has explicitly dismissed them too many times. |
71 const base::Feature kBlockPromptsIfDismissedOften{ | 65 const base::Feature kBlockPromptsIfDismissedOften{ |
72 "BlockPromptsIfDismissedOften", base::FEATURE_DISABLED_BY_DEFAULT}; | 66 "BlockPromptsIfDismissedOften", base::FEATURE_DISABLED_BY_DEFAULT}; |
73 | 67 |
74 // Enables or disables whether permission prompts are automatically blocked | 68 // Enables or disables whether permission prompts are automatically blocked |
75 // after the user has ignored them too many times. | 69 // after the user has ignored them too many times. |
76 const base::Feature kBlockPromptsIfIgnoredOften{ | 70 const base::Feature kBlockPromptsIfIgnoredOften{ |
77 "BlockPromptsIfIgnoredOften", base::FEATURE_DISABLED_BY_DEFAULT}; | 71 "BlockPromptsIfIgnoredOften", base::FEATURE_DISABLED_BY_DEFAULT}; |
78 | 72 |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 return base::FeatureList::IsEnabled(features::kPrefService) || | 346 return base::FeatureList::IsEnabled(features::kPrefService) || |
353 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 347 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
354 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 348 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
355 switches::kMusConfig) == switches::kMash; | 349 switches::kMusConfig) == switches::kMash; |
356 #else | 350 #else |
357 false; | 351 false; |
358 #endif | 352 #endif |
359 } | 353 } |
360 | 354 |
361 } // namespace features | 355 } // namespace features |
OLD | NEW |