| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 // thread. | 299 // thread. |
| 300 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", | 300 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", |
| 301 base::FEATURE_ENABLED_BY_DEFAULT}; | 301 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 302 #endif | 302 #endif |
| 303 | 303 |
| 304 // Experiment to use grouped permission infobars which could show and handle | 304 // Experiment to use grouped permission infobars which could show and handle |
| 305 // multiple permission requests. | 305 // multiple permission requests. |
| 306 const base::Feature kUseGroupedPermissionInfobars{ | 306 const base::Feature kUseGroupedPermissionInfobars{ |
| 307 "UseGroupedPermissionInfobars", base::FEATURE_DISABLED_BY_DEFAULT}; | 307 "UseGroupedPermissionInfobars", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 308 | 308 |
| 309 // Feature to use the PermissionManager to show prompts for WebRTC permission |
| 310 // requests. |
| 311 const base::Feature kUsePermissionManagerForMediaRequests{ |
| 312 "UsePermissionManagerForMediaRequests", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 313 |
| 309 #if defined(OS_CHROMEOS) | 314 #if defined(OS_CHROMEOS) |
| 310 // Enables or disables the opt-in IME menu in the language settings page. | 315 // Enables or disables the opt-in IME menu in the language settings page. |
| 311 const base::Feature kOptInImeMenu{"OptInImeMenu", | 316 const base::Feature kOptInImeMenu{"OptInImeMenu", |
| 312 base::FEATURE_ENABLED_BY_DEFAULT}; | 317 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 313 | 318 |
| 314 // Enables or disables pin quick unlock. | 319 // Enables or disables pin quick unlock. |
| 315 const base::Feature kQuickUnlockPin{"QuickUnlockPin", | 320 const base::Feature kQuickUnlockPin{"QuickUnlockPin", |
| 316 base::FEATURE_ENABLED_BY_DEFAULT}; | 321 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 317 | 322 |
| 318 // Enables pin on the login screen. | 323 // Enables pin on the login screen. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 336 return base::FeatureList::IsEnabled(features::kPrefService) || | 341 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 337 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 342 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 338 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 343 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 339 switches::kMusConfig) == switches::kMash; | 344 switches::kMusConfig) == switches::kMash; |
| 340 #else | 345 #else |
| 341 false; | 346 false; |
| 342 #endif | 347 #endif |
| 343 } | 348 } |
| 344 | 349 |
| 345 } // namespace features | 350 } // namespace features |
| OLD | NEW |