OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/prerender/prerender_field_trial.h" | 5 #include "chrome/browser/prerender/prerender_field_trial.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 11 #include "base/prefs/pref_service.h" |
11 #include "chrome/browser/metrics/metrics_service.h" | 12 #include "chrome/browser/metrics/metrics_service.h" |
12 #include "chrome/browser/predictors/autocomplete_action_predictor.h" | 13 #include "chrome/browser/predictors/autocomplete_action_predictor.h" |
13 #include "chrome/browser/prefs/pref_service.h" | |
14 #include "chrome/browser/prerender/prerender_manager.h" | 14 #include "chrome/browser/prerender/prerender_manager.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
17 #include "chrome/common/chrome_version_info.h" | 17 #include "chrome/common/chrome_version_info.h" |
18 | 18 |
19 using base::FieldTrial; | 19 using base::FieldTrial; |
20 using base::FieldTrialList; | 20 using base::FieldTrialList; |
21 | 21 |
22 namespace prerender { | 22 namespace prerender { |
23 | 23 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 return group == FieldTrial::kNotFinalized || | 244 return group == FieldTrial::kNotFinalized || |
245 group == g_omnibox_trial_default_group_number; | 245 group == g_omnibox_trial_default_group_number; |
246 } | 246 } |
247 | 247 |
248 bool IsLocalPredictorEnabled() { | 248 bool IsLocalPredictorEnabled() { |
249 return base::FieldTrialList::FindFullName(kLocalPredictorTrialName) == | 249 return base::FieldTrialList::FindFullName(kLocalPredictorTrialName) == |
250 kLocalPredictorEnabledGroup; | 250 kLocalPredictorEnabledGroup; |
251 } | 251 } |
252 | 252 |
253 } // namespace prerender | 253 } // namespace prerender |
OLD | NEW |