| Index: chrome/browser/net/predictor.cc
|
| diff --git a/chrome/browser/net/predictor.cc b/chrome/browser/net/predictor.cc
|
| index 566818448a5ca13bba5baa48e56c8e0ad055ca52..8d4423400e68f4095aafbcf16ce45524760986d9 100644
|
| --- a/chrome/browser/net/predictor.cc
|
| +++ b/chrome/browser/net/predictor.cc
|
| @@ -31,6 +31,7 @@
|
| #include "chrome/browser/io_thread.h"
|
| #include "chrome/browser/prefs/session_startup_pref.h"
|
| #include "chrome/browser/profiles/profile_io_data.h"
|
| +#include "chrome/common/chrome_features.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "components/pref_registry/pref_registry_syncable.h"
|
| @@ -55,13 +56,6 @@ using content::BrowserThread;
|
|
|
| namespace chrome_browser_net {
|
|
|
| -namespace {
|
| -
|
| -const base::Feature kNetworkPrediction{"NetworkPrediction",
|
| - base::FEATURE_ENABLED_BY_DEFAULT};
|
| -
|
| -} // namespace
|
| -
|
| // static
|
| const int Predictor::kPredictorReferrerVersion = 2;
|
| const double Predictor::kPreconnectWorthyExpectedValue = 0.8;
|
| @@ -128,7 +122,8 @@ Predictor::~Predictor() {
|
|
|
| // static
|
| Predictor* Predictor::CreatePredictor(bool simple_shutdown) {
|
| - bool predictor_enabled = base::FeatureList::IsEnabled(kNetworkPrediction);
|
| + bool predictor_enabled =
|
| + base::FeatureList::IsEnabled(features::kNetworkPrediction);
|
| if (simple_shutdown)
|
| return new SimplePredictor(predictor_enabled);
|
| return new Predictor(predictor_enabled);
|
|
|