Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / prefetch / prefetch_field_trial.cc
blob5aeef0b00adc78fc727d28c2fe64eb4bad1f324d
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.
5 #include "chrome/browser/prefetch/prefetch_field_trial.h"
7 #include <string>
9 #include "base/metrics/field_trial.h"
10 #include "base/strings/string_util.h"
12 namespace prefetch {
14 bool IsPrefetchEnabled() {
15 std::string experiment = base::FieldTrialList::FindFullName("Prefetch");
16 if (StartsWithASCII(experiment, "ExperimentYes", false))
17 return true;
18 return false;
21 } // namespace prefetch