| 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 // A new user experience for transitioning into fullscreen and mouse pointer | 347 // A new user experience for transitioning into fullscreen and mouse pointer |
| 348 // lock states. | 348 // lock states. |
| 349 const base::Feature kSimplifiedFullscreenUI{"ViewsSimplifiedFullscreenUI", | 349 const base::Feature kSimplifiedFullscreenUI{"ViewsSimplifiedFullscreenUI", |
| 350 base::FEATURE_ENABLED_BY_DEFAULT}; | 350 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 351 | 351 |
| 352 // Enables or disables UI in MD Settings to view content settings grouped by | 352 // Enables or disables UI in MD Settings to view content settings grouped by |
| 353 // origin. | 353 // origin. |
| 354 const base::Feature kSiteDetails{"SiteDetails", | 354 const base::Feature kSiteDetails{"SiteDetails", |
| 355 base::FEATURE_DISABLED_BY_DEFAULT}; | 355 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 356 | 356 |
| 357 #if !defined(OS_ANDROID) |
| 358 // Enables delaying the navigation of background tabs in order to improve |
| 359 // foreground tab's user experience. |
| 360 const base::Feature kStaggeredBackgroundTabOpen{ |
| 361 "StaggeredBackgroundTabOpen", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 362 #endif |
| 363 |
| 357 // Enables or disables the creation of (legacy) supervised users. Does not | 364 // Enables or disables the creation of (legacy) supervised users. Does not |
| 358 // affect existing supervised users. | 365 // affect existing supervised users. |
| 359 const base::Feature kSupervisedUserCreation{"SupervisedUserCreation", | 366 const base::Feature kSupervisedUserCreation{"SupervisedUserCreation", |
| 360 base::FEATURE_DISABLED_BY_DEFAULT}; | 367 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 361 | 368 |
| 362 #if defined(SYZYASAN) | 369 #if defined(SYZYASAN) |
| 363 // Enable the deferred free mechanism in the syzyasan module, which helps the | 370 // Enable the deferred free mechanism in the syzyasan module, which helps the |
| 364 // performance by deferring some work on the critical path to a background | 371 // performance by deferring some work on the critical path to a background |
| 365 // thread. | 372 // thread. |
| 366 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", | 373 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 return base::FeatureList::IsEnabled(features::kPrefService) || | 426 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 420 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 427 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 421 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 428 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 422 switches::kMusConfig) == switches::kMash; | 429 switches::kMusConfig) == switches::kMash; |
| 423 #else | 430 #else |
| 424 false; | 431 false; |
| 425 #endif | 432 #endif |
| 426 } | 433 } |
| 427 | 434 |
| 428 } // namespace features | 435 } // namespace features |
| OLD | NEW |