Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2321)

Unified Diff: chrome/browser/net/predictor.cc

Issue 2876153002: Support Using ScopedFeatureList in BrowserTest (Closed)
Patch Set: ilya comments addressed Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698