Chromium Code Reviews| 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 // Enables delaying background tabs' opening process in order to improve | |
|
Charlie Reis
2017/07/06 23:50:31
nit: "process" is ambiguous here (vs RenderProcess
Zhen Wang
2017/07/07 18:06:39
Updated
| |
| 358 // foreground tab's user experience. | |
| 359 const base::Feature kStaggeredBackgroundTabOpen{ | |
| 360 "StaggeredBackgroundTabOpen", base::FEATURE_DISABLED_BY_DEFAULT}; | |
| 361 | |
| 357 // Enables or disables the creation of (legacy) supervised users. Does not | 362 // Enables or disables the creation of (legacy) supervised users. Does not |
| 358 // affect existing supervised users. | 363 // affect existing supervised users. |
| 359 const base::Feature kSupervisedUserCreation{"SupervisedUserCreation", | 364 const base::Feature kSupervisedUserCreation{"SupervisedUserCreation", |
| 360 base::FEATURE_DISABLED_BY_DEFAULT}; | 365 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 361 | 366 |
| 362 #if defined(SYZYASAN) | 367 #if defined(SYZYASAN) |
| 363 // Enable the deferred free mechanism in the syzyasan module, which helps the | 368 // 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 | 369 // performance by deferring some work on the critical path to a background |
| 365 // thread. | 370 // thread. |
| 366 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", | 371 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) || | 424 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 420 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 425 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 421 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 426 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 422 switches::kMusConfig) == switches::kMash; | 427 switches::kMusConfig) == switches::kMash; |
| 423 #else | 428 #else |
| 424 false; | 429 false; |
| 425 #endif | 430 #endif |
| 426 } | 431 } |
| 427 | 432 |
| 428 } // namespace features | 433 } // namespace features |
| OLD | NEW |