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

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

Issue 2910843002: [Cleanup] Move all browsertests to use ScopedFeatureList to modify features
Patch Set: Move SFL calls to constructor Created 3 years, 5 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_tab_helper.cc
diff --git a/chrome/browser/net/predictor_tab_helper.cc b/chrome/browser/net/predictor_tab_helper.cc
index 20f4157dc7a7f79007760e8283694255455f9516..00adda9dbce1889d4b359bfc89ae2736733be29f 100644
--- a/chrome/browser/net/predictor_tab_helper.cc
+++ b/chrome/browser/net/predictor_tab_helper.cc
@@ -4,9 +4,9 @@
#include "chrome/browser/net/predictor_tab_helper.h"
-#include "base/feature_list.h"
#include "chrome/browser/net/predictor.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/common/chrome_features.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/common/browser_side_navigation_policy.h"
@@ -19,15 +19,6 @@ DEFINE_WEB_CONTENTS_USER_DATA_KEY(chrome_browser_net::PredictorTabHelper);
namespace chrome_browser_net {
-namespace {
-
-// Triggers the preconnector on renderer-initiated navigations. This captures
-// more navigations.
-const base::Feature kPreconnectMore{"PreconnectMore",
- base::FEATURE_DISABLED_BY_DEFAULT};
-
-} // namespace
-
PredictorTabHelper::PredictorTabHelper(content::WebContents* web_contents)
: content::WebContentsObserver(web_contents),
predicted_from_pending_entry_(false) {
@@ -38,7 +29,7 @@ PredictorTabHelper::~PredictorTabHelper() {
void PredictorTabHelper::DidStartNavigation(
content::NavigationHandle* navigation_handle) {
- if (!base::FeatureList::IsEnabled(kPreconnectMore) &&
+ if (!base::FeatureList::IsEnabled(features::kPreconnectMore) &&
(!content::IsBrowserSideNavigationEnabled() ||
navigation_handle->IsRendererInitiated()))
return;
« no previous file with comments | « chrome/browser/net/predictor_browsertest.cc ('k') | chrome/browser/notifications/notification_interactive_uitest_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698