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/browser/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/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/win/registry.h" | 12 #include "base/win/registry.h" |
13 #include "components/variations/variations_associated_data.h" | 13 #include "components/variations/variations_associated_data.h" |
14 | 14 |
15 namespace startup_metric_utils { | 15 namespace startup_metric_utils { |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 base::string16 group; | 137 base::string16 group; |
138 key.ReadValue(L"", &group); | 138 key.ReadValue(L"", &group); |
139 | 139 |
140 if (!group.empty()) { | 140 if (!group.empty()) { |
141 register_synthetic_field_trial.Run(kPreReadSyntheticFieldTrialName, | 141 register_synthetic_field_trial.Run(kPreReadSyntheticFieldTrialName, |
142 base::UTF16ToUTF8(group)); | 142 base::UTF16ToUTF8(group)); |
143 } | 143 } |
144 } | 144 } |
145 | 145 |
146 } // namespace startup_metric_utils | 146 } // namespace startup_metric_utils |
OLD | NEW |