OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/startup_metric_utils/common/pre_read_field_trial_utils_win.
h" | 5 #include "components/startup_metric_utils/common/pre_read_field_trial_utils_win.
h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "base/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
11 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
12 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
13 #include "base/win/registry.h" | 12 #include "base/win/registry.h" |
14 #include "components/variations/variations_associated_data.h" | 13 #include "components/variations/variations_associated_data.h" |
15 | 14 |
16 namespace startup_metric_utils { | 15 namespace startup_metric_utils { |
17 | 16 |
18 namespace { | 17 namespace { |
19 | 18 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 base::string16 group; | 145 base::string16 group; |
147 key.ReadValue(L"", &group); | 146 key.ReadValue(L"", &group); |
148 | 147 |
149 if (!group.empty()) { | 148 if (!group.empty()) { |
150 register_synthetic_field_trial.Run(kPreReadSyntheticFieldTrialName, | 149 register_synthetic_field_trial.Run(kPreReadSyntheticFieldTrialName, |
151 base::UTF16ToUTF8(group)); | 150 base::UTF16ToUTF8(group)); |
152 } | 151 } |
153 } | 152 } |
154 | 153 |
155 } // namespace startup_metric_utils | 154 } // namespace startup_metric_utils |
OLD | NEW |