OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/metrics/variations/variations_registry_syncer_win.h" | 5 #include "chrome/browser/metrics/variations/variations_registry_syncer_win.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
11 #include "base/string_split.h" | |
12 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/strings/string_split.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "chrome/common/metrics/variations/variations_util.h" | 14 #include "chrome/common/metrics/variations/variations_util.h" |
15 #include "chrome/installer/util/google_update_settings.h" | 15 #include "chrome/installer/util/google_update_settings.h" |
16 #include "chrome/installer/util/install_util.h" | 16 #include "chrome/installer/util/install_util.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // Delay before performing a registry sync, in seconds. | 20 // Delay before performing a registry sync, in seconds. |
21 const int kRegistrySyncDelaySeconds = 5; | 21 const int kRegistrySyncDelaySeconds = 5; |
22 | 22 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 CombineExperimentLabels(variation_labels, other_labels); | 164 CombineExperimentLabels(variation_labels, other_labels); |
165 | 165 |
166 if (!GoogleUpdateSettings::SetExperimentLabels(is_system_install, | 166 if (!GoogleUpdateSettings::SetExperimentLabels(is_system_install, |
167 combined_labels)) { | 167 combined_labels)) { |
168 DVLOG(1) << "Error writing Variation labels to the registry: " | 168 DVLOG(1) << "Error writing Variation labels to the registry: " |
169 << combined_labels; | 169 << combined_labels; |
170 } | 170 } |
171 } | 171 } |
172 | 172 |
173 } // namespace chrome_variations | 173 } // namespace chrome_variations |
OLD | NEW |