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}; | |
215 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 209 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
216 | 210 |
217 // Enables or disables modal permission prompts. | 211 // Enables or disables modal permission prompts. |
218 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts", | 212 const base::Feature kModalPermissionPrompts{"ModalPermissionPrompts", |
219 base::FEATURE_DISABLED_BY_DEFAULT}; | 213 base::FEATURE_DISABLED_BY_DEFAULT}; |
220 | 214 |
221 #if defined(OS_WIN) | 215 #if defined(OS_WIN) |
222 // Enables or disables the ModuleDatabase backend for the conflicts UI. | 216 // Enables or disables the ModuleDatabase backend for the conflicts UI. |
223 const base::Feature kModuleDatabase{"ModuleDatabase", | 217 const base::Feature kModuleDatabase{"ModuleDatabase", |
224 base::FEATURE_DISABLED_BY_DEFAULT}; | 218 base::FEATURE_DISABLED_BY_DEFAULT}; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 return base::FeatureList::IsEnabled(features::kPrefService) || | 344 return base::FeatureList::IsEnabled(features::kPrefService) || |
351 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 345 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
352 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 346 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
353 switches::kMusConfig) == switches::kMash; | 347 switches::kMusConfig) == switches::kMash; |
354 #else | 348 #else |
355 false; | 349 false; |
356 #endif | 350 #endif |
357 } | 351 } |
358 | 352 |
359 } // namespace features | 353 } // namespace features |
OLD | NEW |