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

Side by Side Diff: chrome/browser/prefetch/prefetch_field_trial.cc

Issue 142473003: Binds prefetching to the predictive networking privacy option. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding missing namespace Created 6 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/prefetch/prefetch_field_trial.h" 5 #include "chrome/browser/prefetch/prefetch_field_trial.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 11
12 namespace prefetch { 12 namespace prefetch {
13 13
14 bool IsPrefetchEnabled() { 14 bool IsPrefetchFieldTrialEnabled() {
15 std::string experiment = base::FieldTrialList::FindFullName("Prefetch"); 15 std::string experiment = base::FieldTrialList::FindFullName("Prefetch");
16 if (StartsWithASCII(experiment, "ExperimentYes", false)) 16 if (StartsWithASCII(experiment, "ExperimentYes", false))
17 return true; 17 return true;
18 return false; 18 return false;
19 } 19 }
20 20
21 } // namespace prefetch 21 } // namespace prefetch
OLDNEW
« no previous file with comments | « chrome/browser/prefetch/prefetch_field_trial.h ('k') | chrome/browser/profiles/profile_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698