| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 // The material redesign of the Incognito NTP. | 194 // The material redesign of the Incognito NTP. |
| 195 const base::Feature kMaterialDesignIncognitoNTP{ | 195 const base::Feature kMaterialDesignIncognitoNTP{ |
| 196 "MaterialDesignIncognitoNTP", | 196 "MaterialDesignIncognitoNTP", |
| 197 #if defined(OS_ANDROID) | 197 #if defined(OS_ANDROID) |
| 198 base::FEATURE_DISABLED_BY_DEFAULT | 198 base::FEATURE_DISABLED_BY_DEFAULT |
| 199 #else | 199 #else |
| 200 base::FEATURE_ENABLED_BY_DEFAULT | 200 base::FEATURE_ENABLED_BY_DEFAULT |
| 201 #endif | 201 #endif |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 // Enables or disables the Material Design version of chrome://settings. | |
| 205 // Also affects chrome://help. | |
| 206 const base::Feature kMaterialDesignSettings{"MaterialDesignSettings", | |
| 207 base::FEATURE_ENABLED_BY_DEFAULT}; | |
| 208 | |
| 209 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 204 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 210 // Enables media content bitstream remoting, an optimization that can activate | 205 // Enables media content bitstream remoting, an optimization that can activate |
| 211 // during Cast Tab Mirroring. | 206 // during Cast Tab Mirroring. |
| 212 const base::Feature kMediaRemoting{"MediaRemoting", | 207 const base::Feature kMediaRemoting{"MediaRemoting", |
| 213 base::FEATURE_DISABLED_BY_DEFAULT}; | 208 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 214 | 209 |
| 215 // If enabled, replaces the <extensionview> controller in the route details view | 210 // If enabled, replaces the <extensionview> controller in the route details view |
| 216 // of the Media Router dialog with the controller bundled with the WebUI | 211 // of the Media Router dialog with the controller bundled with the WebUI |
| 217 // resources. | 212 // resources. |
| 218 const base::Feature kMediaRouterUIRouteController{ | 213 const base::Feature kMediaRouterUIRouteController{ |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 return base::FeatureList::IsEnabled(features::kPrefService) || | 373 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 379 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 374 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 380 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 375 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 381 switches::kMusConfig) == switches::kMash; | 376 switches::kMusConfig) == switches::kMash; |
| 382 #else | 377 #else |
| 383 false; | 378 false; |
| 384 #endif | 379 #endif |
| 385 } | 380 } |
| 386 | 381 |
| 387 } // namespace features | 382 } // namespace features |
| OLD | NEW |