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

Unified Diff: chrome/browser/prefetch/prefetch.cc

Issue 1800723002: Simplify checking for prefetch field trial in RDH (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@link-rel
Patch Set: rebased on top of master Created 4 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/prefetch/prefetch.h ('k') | chrome/browser/prefetch/prefetch_field_trial.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefetch/prefetch.cc
diff --git a/chrome/browser/prefetch/prefetch.cc b/chrome/browser/prefetch/prefetch.cc
deleted file mode 100644
index 2c07cc9560ba0c4cee58478d4f8f1f13460afc39..0000000000000000000000000000000000000000
--- a/chrome/browser/prefetch/prefetch.cc
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/prefetch/prefetch.h"
-
-#include <string>
-
-#include "base/metrics/field_trial.h"
-#include "base/strings/string_util.h"
-#include "chrome/browser/net/prediction_options.h"
-#include "chrome/browser/prefetch/prefetch_field_trial.h"
-#include "chrome/browser/profiles/profile_io_data.h"
-#include "net/base/network_change_notifier.h"
-
-namespace prefetch {
-
-bool IsPrefetchEnabled(content::ResourceContext* resource_context) {
- DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
-
- return !DisableForFieldTrial();
-}
-
-} // namespace prefetch
« no previous file with comments | « chrome/browser/prefetch/prefetch.h ('k') | chrome/browser/prefetch/prefetch_field_trial.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698