| 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 // thread. | 308 // thread. |
| 309 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", | 309 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", |
| 310 base::FEATURE_ENABLED_BY_DEFAULT}; | 310 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 311 #endif | 311 #endif |
| 312 | 312 |
| 313 // Experiment to use grouped permission infobars which could show and handle | 313 // Experiment to use grouped permission infobars which could show and handle |
| 314 // multiple permission requests. | 314 // multiple permission requests. |
| 315 const base::Feature kUseGroupedPermissionInfobars{ | 315 const base::Feature kUseGroupedPermissionInfobars{ |
| 316 "UseGroupedPermissionInfobars", base::FEATURE_DISABLED_BY_DEFAULT}; | 316 "UseGroupedPermissionInfobars", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 317 | 317 |
| 318 // Feature to use the PermissionManager to show prompts for WebRTC permission |
| 319 // requests. |
| 320 const base::Feature kUsePermissionManagerForMediaRequests{ |
| 321 "UsePermissionManagerForMediaRequests", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 322 |
| 318 #if defined(OS_CHROMEOS) | 323 #if defined(OS_CHROMEOS) |
| 319 // Enables or disables the opt-in IME menu in the language settings page. | 324 // Enables or disables the opt-in IME menu in the language settings page. |
| 320 const base::Feature kOptInImeMenu{"OptInImeMenu", | 325 const base::Feature kOptInImeMenu{"OptInImeMenu", |
| 321 base::FEATURE_ENABLED_BY_DEFAULT}; | 326 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 322 | 327 |
| 323 // Enables or disables pin quick unlock. | 328 // Enables or disables pin quick unlock. |
| 324 const base::Feature kQuickUnlockPin{"QuickUnlockPin", | 329 const base::Feature kQuickUnlockPin{"QuickUnlockPin", |
| 325 base::FEATURE_ENABLED_BY_DEFAULT}; | 330 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 326 | 331 |
| 327 // Enables pin on the login screen. | 332 // Enables pin on the login screen. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 345 return base::FeatureList::IsEnabled(features::kPrefService) || | 350 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 346 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 351 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 347 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 352 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 348 switches::kMusConfig) == switches::kMash; | 353 switches::kMusConfig) == switches::kMash; |
| 349 #else | 354 #else |
| 350 false; | 355 false; |
| 351 #endif | 356 #endif |
| 352 } | 357 } |
| 353 | 358 |
| 354 } // namespace features | 359 } // namespace features |
| OLD | NEW |