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