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

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

Issue 2876153002: Support Using ScopedFeatureList in BrowserTest (Closed)
Patch Set: leave tests and changes in test_suites to following patch 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
« no previous file with comments | « base/test/test_suite.cc ('k') | chrome/common/chrome_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/predictor.cc
diff --git a/chrome/browser/net/predictor.cc b/chrome/browser/net/predictor.cc
index c1dc2d127114969c75a96a62f468d019149115fe..f99580daac396e33987fbf5199e6b3061beb34b4 100644
--- a/chrome/browser/net/predictor.cc
+++ b/chrome/browser/net/predictor.cc
@@ -33,6 +33,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"
@@ -59,9 +60,6 @@ namespace chrome_browser_net {
namespace {
-const base::Feature kNetworkPrediction{"NetworkPrediction",
- base::FEATURE_ENABLED_BY_DEFAULT};
-
#if defined(OS_ANDROID)
// Disabled on Android, as there are no "pinned tabs", meaning that a startup
// is unlikely to request the same URL, and hence to resolve the same domains
@@ -171,7 +169,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);
« no previous file with comments | « base/test/test_suite.cc ('k') | chrome/common/chrome_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698