| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // Enables or disables the Material Design version of chrome://settings. | 199 // Enables or disables the Material Design version of chrome://settings. |
| 200 // Also affects chrome://help. | 200 // Also affects chrome://help. |
| 201 const base::Feature kMaterialDesignSettings{"MaterialDesignSettings", | 201 const base::Feature kMaterialDesignSettings{"MaterialDesignSettings", |
| 202 base::FEATURE_ENABLED_BY_DEFAULT}; | 202 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 203 | 203 |
| 204 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 204 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 205 // Enables media content bitstream remoting, an optimization that can activate | 205 // Enables media content bitstream remoting, an optimization that can activate |
| 206 // during Cast Tab Mirroring. | 206 // during Cast Tab Mirroring. |
| 207 const base::Feature kMediaRemoting{"MediaRemoting", | 207 const base::Feature kMediaRemoting{"MediaRemoting", |
| 208 base::FEATURE_DISABLED_BY_DEFAULT}; | 208 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 209 |
| 210 // If enabled, replaces the <extensionview> controller in the route details view |
| 211 // of the Media Router dialog with the controller bundled with the WebUI |
| 212 // resources. |
| 213 const base::Feature kMediaRouterUIRouteController{ |
| 214 "MediaRouterUIRouteController", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 209 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 215 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
| 210 | 216 |
| 211 // Enables or disables modal permission prompts. | 217 // Enables or disables modal permission prompts. |
| 212 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts", | 218 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts", |
| 213 base::FEATURE_DISABLED_BY_DEFAULT}; | 219 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 214 | 220 |
| 215 #if defined(OS_WIN) | 221 #if defined(OS_WIN) |
| 216 // Enables or disables the ModuleDatabase backend for the conflicts UI. | 222 // Enables or disables the ModuleDatabase backend for the conflicts UI. |
| 217 const base::Feature kModuleDatabase{"ModuleDatabase", | 223 const base::Feature kModuleDatabase{"ModuleDatabase", |
| 218 base::FEATURE_DISABLED_BY_DEFAULT}; | 224 base::FEATURE_DISABLED_BY_DEFAULT}; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 return base::FeatureList::IsEnabled(features::kPrefService) || | 350 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 345 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 351 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 346 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 352 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 347 switches::kMusConfig) == switches::kMash; | 353 switches::kMusConfig) == switches::kMash; |
| 348 #else | 354 #else |
| 349 false; | 355 false; |
| 350 #endif | 356 #endif |
| 351 } | 357 } |
| 352 | 358 |
| 353 } // namespace features | 359 } // namespace features |
| OLD | NEW |