| 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 const base::Feature kQuickUnlockFingerprint{"QuickUnlockFingerprint", | 333 const base::Feature kQuickUnlockFingerprint{"QuickUnlockFingerprint", |
| 334 base::FEATURE_DISABLED_BY_DEFAULT}; | 334 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 335 | 335 |
| 336 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. | 336 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. |
| 337 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", | 337 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", |
| 338 base::FEATURE_ENABLED_BY_DEFAULT}; | 338 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 339 | 339 |
| 340 // Enables or disables flash component updates on Chrome OS. | 340 // Enables or disables flash component updates on Chrome OS. |
| 341 const base::Feature kCrosCompUpdates{"CrosCompUpdates", | 341 const base::Feature kCrosCompUpdates{"CrosCompUpdates", |
| 342 base::FEATURE_ENABLED_BY_DEFAULT}; | 342 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 343 |
| 344 // Enables or disables Chrome OS Component updates on Chrome OS. |
| 345 const base::Feature kCrOSComponent{"CrOSComponent", |
| 346 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 343 #endif // defined(OS_CHROMEOS) | 347 #endif // defined(OS_CHROMEOS) |
| 344 | 348 |
| 345 bool PrefServiceEnabled() { | 349 bool PrefServiceEnabled() { |
| 346 return base::FeatureList::IsEnabled(features::kPrefService) || | 350 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 347 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 351 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 348 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 352 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 349 switches::kMusConfig) == switches::kMash; | 353 switches::kMusConfig) == switches::kMash; |
| 350 #else | 354 #else |
| 351 false; | 355 false; |
| 352 #endif | 356 #endif |
| 353 } | 357 } |
| 354 | 358 |
| 355 } // namespace features | 359 } // namespace features |
| OLD | NEW |