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

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

Issue 2910843002: [Cleanup] Move all browsertests to use ScopedFeatureList to modify features
Patch Set: rebase update 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_tab_helper.cc
diff --git a/chrome/browser/net/predictor_tab_helper.cc b/chrome/browser/net/predictor_tab_helper.cc
index 20f4157dc7a7f79007760e8283694255455f9516..03b8504082f87ac535603492597e6230af67ef8f 100644
--- a/chrome/browser/net/predictor_tab_helper.cc
+++ b/chrome/browser/net/predictor_tab_helper.cc
@@ -4,7 +4,6 @@
#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/url_constants.h"
@@ -17,16 +16,16 @@
DEFINE_WEB_CONTENTS_USER_DATA_KEY(chrome_browser_net::PredictorTabHelper);
-namespace chrome_browser_net {
-
-namespace {
+namespace features {
// Triggers the preconnector on renderer-initiated navigations. This captures
// more navigations.
const base::Feature kPreconnectMore{"PreconnectMore",
base::FEATURE_DISABLED_BY_DEFAULT};
-} // namespace
+} // namespace features
+
+namespace chrome_browser_net {
PredictorTabHelper::PredictorTabHelper(content::WebContents* web_contents)
: content::WebContentsObserver(web_contents),
@@ -38,7 +37,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;

Powered by Google App Engine
This is Rietveld 408576698