| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/metrics/metrics_service_accessor.h" | 5 #include "components/metrics/metrics_service_accessor.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
| 10 #include "components/metrics/metrics_pref_names.h" | 10 #include "components/metrics/metrics_pref_names.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 | 56 |
| 57 // static | 57 // static |
| 58 bool MetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameAndGroupHash( | 58 bool MetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameAndGroupHash( |
| 59 MetricsService* metrics_service, | 59 MetricsService* metrics_service, |
| 60 uint32_t trial_name_hash, | 60 uint32_t trial_name_hash, |
| 61 uint32_t group_name_hash) { | 61 uint32_t group_name_hash) { |
| 62 if (!metrics_service) | 62 if (!metrics_service) |
| 63 return false; | 63 return false; |
| 64 | 64 |
| 65 SyntheticTrialGroup trial_group(trial_name_hash, group_name_hash); | 65 variations::SyntheticTrialGroup trial_group(trial_name_hash, group_name_hash); |
| 66 metrics_service->RegisterSyntheticFieldTrial(trial_group); | 66 metrics_service->RegisterSyntheticFieldTrial(trial_group); |
| 67 return true; | 67 return true; |
| 68 } | 68 } |
| 69 | 69 |
| 70 } // namespace metrics | 70 } // namespace metrics |
| OLD | NEW |