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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 const base::Feature kMaterialDesignIncognitoNTP{ | 196 const base::Feature kMaterialDesignIncognitoNTP{ |
197 "MaterialDesignIncognitoNTP", base::FEATURE_DISABLED_BY_DEFAULT}; | 197 "MaterialDesignIncognitoNTP", base::FEATURE_DISABLED_BY_DEFAULT}; |
198 | 198 |
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. When kMediaRemotingEncrypted is disabled, the | 206 // during Cast Tab Mirroring. |
207 // feature will not activate for encrypted content. | |
208 const base::Feature kMediaRemoting{"MediaRemoting", | 207 const base::Feature kMediaRemoting{"MediaRemoting", |
209 base::FEATURE_DISABLED_BY_DEFAULT}; | 208 base::FEATURE_DISABLED_BY_DEFAULT}; |
210 const base::Feature kMediaRemotingEncrypted{"MediaRemotingEncrypted", | |
211 base::FEATURE_DISABLED_BY_DEFAULT}; | |
212 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 209 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
213 | 210 |
214 // Enables or disables modal permission prompts. | 211 // Enables or disables modal permission prompts. |
215 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts", | 212 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts", |
216 base::FEATURE_DISABLED_BY_DEFAULT}; | 213 base::FEATURE_DISABLED_BY_DEFAULT}; |
217 | 214 |
218 #if defined(OS_WIN) | 215 #if defined(OS_WIN) |
219 // Enables or disables the ModuleDatabase backend for the conflicts UI. | 216 // Enables or disables the ModuleDatabase backend for the conflicts UI. |
220 const base::Feature kModuleDatabase{"ModuleDatabase", | 217 const base::Feature kModuleDatabase{"ModuleDatabase", |
221 base::FEATURE_DISABLED_BY_DEFAULT}; | 218 base::FEATURE_DISABLED_BY_DEFAULT}; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 return base::FeatureList::IsEnabled(features::kPrefService) || | 342 return base::FeatureList::IsEnabled(features::kPrefService) || |
346 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 343 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
347 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 344 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
348 switches::kMusConfig) == switches::kMash; | 345 switches::kMusConfig) == switches::kMash; |
349 #else | 346 #else |
350 false; | 347 false; |
351 #endif | 348 #endif |
352 } | 349 } |
353 | 350 |
354 } // namespace features | 351 } // namespace features |
OLD | NEW |