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