| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 base::FEATURE_ENABLED_BY_DEFAULT}; | 198 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 199 | 199 |
| 200 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 200 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 201 // Enables media content bitstream remoting, an optimization that can activate | 201 // Enables media content bitstream remoting, an optimization that can activate |
| 202 // during Cast Tab Mirroring. When kMediaRemotingEncrypted is disabled, the | 202 // during Cast Tab Mirroring. When kMediaRemotingEncrypted is disabled, the |
| 203 // feature will not activate for encrypted content. | 203 // feature will not activate for encrypted content. |
| 204 const base::Feature kMediaRemoting{"MediaRemoting", | 204 const base::Feature kMediaRemoting{"MediaRemoting", |
| 205 base::FEATURE_DISABLED_BY_DEFAULT}; | 205 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 206 const base::Feature kMediaRemotingEncrypted{"MediaRemotingEncrypted", | 206 const base::Feature kMediaRemotingEncrypted{"MediaRemotingEncrypted", |
| 207 base::FEATURE_DISABLED_BY_DEFAULT}; | 207 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 208 |
| 209 // If enabled, replaces the <extensionview> controller in the route details view |
| 210 // of the Media Router dialog with the controller bundled with the WebUI |
| 211 // resources. |
| 212 const base::Feature kMediaRouterUIRouteController{ |
| 213 "MediaRouterUIRouteController", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 208 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 214 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
| 209 | 215 |
| 210 // Enables or disables modal permission prompts. | 216 // Enables or disables modal permission prompts. |
| 211 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts", | 217 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts", |
| 212 base::FEATURE_DISABLED_BY_DEFAULT}; | 218 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 213 | 219 |
| 214 #if defined(OS_WIN) | 220 #if defined(OS_WIN) |
| 215 // Enables or disables the ModuleDatabase backend for the conflicts UI. | 221 // Enables or disables the ModuleDatabase backend for the conflicts UI. |
| 216 const base::Feature kModuleDatabase{"ModuleDatabase", | 222 const base::Feature kModuleDatabase{"ModuleDatabase", |
| 217 base::FEATURE_DISABLED_BY_DEFAULT}; | 223 base::FEATURE_DISABLED_BY_DEFAULT}; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 return base::FeatureList::IsEnabled(features::kPrefService) || | 342 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 337 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 343 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 338 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 344 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 339 switches::kMusConfig) == switches::kMash; | 345 switches::kMusConfig) == switches::kMash; |
| 340 #else | 346 #else |
| 341 false; | 347 false; |
| 342 #endif | 348 #endif |
| 343 } | 349 } |
| 344 | 350 |
| 345 } // namespace features | 351 } // namespace features |
| OLD | NEW |