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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 375 |
376 // Enables or disables Instant Tethering on Chrome OS. | 376 // Enables or disables Instant Tethering on Chrome OS. |
377 const base::Feature kInstantTethering{"InstantTethering", | 377 const base::Feature kInstantTethering{"InstantTethering", |
378 base::FEATURE_DISABLED_BY_DEFAULT}; | 378 base::FEATURE_DISABLED_BY_DEFAULT}; |
379 #endif // defined(OS_CHROMEOS) | 379 #endif // defined(OS_CHROMEOS) |
380 | 380 |
381 // Enables or disables Page Load Metrics using mojo IPC. | 381 // Enables or disables Page Load Metrics using mojo IPC. |
382 const base::Feature kPageLoadMetricsMojofication{ | 382 const base::Feature kPageLoadMetricsMojofication{ |
383 "PLMMojofication", base::FEATURE_DISABLED_BY_DEFAULT}; | 383 "PLMMojofication", base::FEATURE_DISABLED_BY_DEFAULT}; |
384 | 384 |
| 385 const base::Feature kNetworkPrediction{"NetworkPrediction", |
| 386 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 387 |
385 bool PrefServiceEnabled() { | 388 bool PrefServiceEnabled() { |
386 return base::FeatureList::IsEnabled(features::kPrefService) || | 389 return base::FeatureList::IsEnabled(features::kPrefService) || |
387 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 390 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
388 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 391 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
389 switches::kMusConfig) == switches::kMash; | 392 switches::kMusConfig) == switches::kMash; |
390 #else | 393 #else |
391 false; | 394 false; |
392 #endif | 395 #endif |
393 } | 396 } |
394 | 397 |
395 } // namespace features | 398 } // namespace features |
OLD | NEW |