| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/prefetch/prefetch_field_trial.h" | |
| 6 | |
| 7 #include <string> | |
| 8 | |
| 9 #include "base/metrics/field_trial.h" | |
| 10 #include "base/strings/string_util.h" | |
| 11 #include "chrome/browser/prerender/prerender_field_trial.h" | |
| 12 | |
| 13 namespace prefetch { | |
| 14 | |
| 15 bool DisableForFieldTrial() { | |
| 16 std::string experiment = base::FieldTrialList::FindFullName("Prefetch"); | |
| 17 return base::StartsWith(experiment, "ExperimentDisable", | |
| 18 base::CompareCase::INSENSITIVE_ASCII); | |
| 19 } | |
| 20 | |
| 21 } // namespace prefetch | |
| OLD | NEW |