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

Unified Diff: chrome/browser/predictors/resource_prefetch_common.cc

Issue 2711153004: predictors: Add an about:flags flag for speculative prefetch. (Closed)
Patch Set: Typo. Created 3 years, 9 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 | « chrome/browser/predictors/resource_prefetch_common.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/predictors/resource_prefetch_common.cc
diff --git a/chrome/browser/predictors/resource_prefetch_common.cc b/chrome/browser/predictors/resource_prefetch_common.cc
index 6af90601f4d4e107b4ae8d09d49f93a49cb93b3a..f72106c2d514ce62e8e1627c6946a35fbb74446b 100644
--- a/chrome/browser/predictors/resource_prefetch_common.cc
+++ b/chrome/browser/predictors/resource_prefetch_common.cc
@@ -7,7 +7,6 @@
#include <string>
#include <tuple>
-#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "chrome/browser/net/prediction_options.h"
#include "chrome/browser/profiles/profile.h"
@@ -26,11 +25,11 @@ const char kExternalPrefetchingMode[] = "external-prefetching";
const char kPrefetchingMode[] = "prefetching";
const char kEnableUrlLearningParamName[] = "enable-url-learning";
-namespace {
+const base::Feature kSpeculativeResourcePrefetchingFeature =
+ base::Feature(kSpeculativeResourcePrefetchingFeatureName,
+ base::FEATURE_DISABLED_BY_DEFAULT);
-const base::Feature kSpeculativeResourcePrefetchingFeature{
- kSpeculativeResourcePrefetchingFeatureName,
- base::FEATURE_DISABLED_BY_DEFAULT};
+namespace {
bool IsPrefetchingEnabledInternal(Profile* profile, int mode, int mask) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
« no previous file with comments | « chrome/browser/predictors/resource_prefetch_common.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698