| 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 // A new user experience for transitioning into fullscreen and mouse pointer | 315 // A new user experience for transitioning into fullscreen and mouse pointer |
| 316 // lock states. | 316 // lock states. |
| 317 const base::Feature kSimplifiedFullscreenUI{"ViewsSimplifiedFullscreenUI", | 317 const base::Feature kSimplifiedFullscreenUI{"ViewsSimplifiedFullscreenUI", |
| 318 base::FEATURE_ENABLED_BY_DEFAULT}; | 318 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 319 | 319 |
| 320 // Enables or disables UI in MD Settings to view content settings grouped by | 320 // Enables or disables UI in MD Settings to view content settings grouped by |
| 321 // origin. | 321 // origin. |
| 322 const base::Feature kSiteDetails{"SiteDetails", | 322 const base::Feature kSiteDetails{"SiteDetails", |
| 323 base::FEATURE_DISABLED_BY_DEFAULT}; | 323 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 324 | 324 |
| 325 // Enables delaying background tabs' opening process in order to improve |
| 326 // foreground tab's user experience. |
| 327 const base::Feature kStaggeredBackgroundTabOpen{ |
| 328 "StaggeredBackgroundTabOpen", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 329 |
| 325 #if defined(SYZYASAN) | 330 #if defined(SYZYASAN) |
| 326 // Enable the deferred free mechanism in the syzyasan module, which helps the | 331 // Enable the deferred free mechanism in the syzyasan module, which helps the |
| 327 // performance by deferring some work on the critical path to a background | 332 // performance by deferring some work on the critical path to a background |
| 328 // thread. | 333 // thread. |
| 329 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", | 334 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", |
| 330 base::FEATURE_ENABLED_BY_DEFAULT}; | 335 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 331 #endif | 336 #endif |
| 332 | 337 |
| 333 // Enables using the local NTP if Google is the default search engine. | 338 // Enables using the local NTP if Google is the default search engine. |
| 334 const base::Feature kUseGoogleLocalNtp{"UseGoogleLocalNtp", | 339 const base::Feature kUseGoogleLocalNtp{"UseGoogleLocalNtp", |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 return base::FeatureList::IsEnabled(features::kPrefService) || | 391 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 387 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 392 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 388 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 393 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 389 switches::kMusConfig) == switches::kMash; | 394 switches::kMusConfig) == switches::kMash; |
| 390 #else | 395 #else |
| 391 false; | 396 false; |
| 392 #endif | 397 #endif |
| 393 } | 398 } |
| 394 | 399 |
| 395 } // namespace features | 400 } // namespace features |
| OLD | NEW |