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 "base/prefs/pref_service.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
14 #include "chrome/browser/net/prediction_options.h" | 14 #include "chrome/browser/net/prediction_options.h" |
15 #include "chrome/browser/predictors/autocomplete_action_predictor.h" | 15 #include "chrome/browser/predictors/autocomplete_action_predictor.h" |
16 #include "chrome/browser/prerender/prerender_manager.h" | 16 #include "chrome/browser/prerender/prerender_manager.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/sync/profile_sync_service.h" | 18 #include "chrome/browser/sync/profile_sync_service.h" |
19 #include "chrome/browser/sync/profile_sync_service_factory.h" | 19 #include "chrome/browser/sync/profile_sync_service_factory.h" |
20 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
21 #include "chrome/common/chrome_version_info.h" | 21 #include "chrome/common/chrome_version_info.h" |
22 #include "chrome/common/pref_names.h" | |
23 #include "components/metrics/metrics_service.h" | 22 #include "components/metrics/metrics_service.h" |
24 #include "components/variations/variations_associated_data.h" | 23 #include "components/variations/variations_associated_data.h" |
25 | 24 |
26 using base::FieldTrial; | 25 using base::FieldTrial; |
27 using base::FieldTrialList; | 26 using base::FieldTrialList; |
28 using base::StringToInt; | 27 using base::StringToInt; |
29 using std::string; | 28 using std::string; |
30 using std::vector; | 29 using std::vector; |
31 | 30 |
32 namespace prerender { | 31 namespace prerender { |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 return GetLocalPredictorSpecValue(kDisableSessionStorageNamespaceMerging) != | 485 return GetLocalPredictorSpecValue(kDisableSessionStorageNamespaceMerging) != |
487 kDisabledGroup; | 486 kDisabledGroup; |
488 } | 487 } |
489 | 488 |
490 bool IsPrerenderCookieStoreEnabled() { | 489 bool IsPrerenderCookieStoreEnabled() { |
491 return GetLocalPredictorSpecValue(kPrerenderCookieStore) != kDisabledGroup && | 490 return GetLocalPredictorSpecValue(kPrerenderCookieStore) != kDisabledGroup && |
492 FieldTrialList::FindFullName(kPrerenderCookieStore) != kDisabledGroup; | 491 FieldTrialList::FindFullName(kPrerenderCookieStore) != kDisabledGroup; |
493 } | 492 } |
494 | 493 |
495 } // namespace prerender | 494 } // namespace prerender |
OLD | NEW |