| 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_ENABLED_BY_DEFAULT}; | 66 "BlockPromptsIfDismissedOften", base::FEATURE_ENABLED_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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 return base::FeatureList::IsEnabled(features::kPrefService) || | 384 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 391 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 385 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 392 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 386 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 393 switches::kMusConfig) == switches::kMash; | 387 switches::kMusConfig) == switches::kMash; |
| 394 #else | 388 #else |
| 395 false; | 389 false; |
| 396 #endif | 390 #endif |
| 397 } | 391 } |
| 398 | 392 |
| 399 } // namespace features | 393 } // namespace features |
| OLD | NEW |