| 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/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "chrome/common/metrics/variations/experiment_labels.h" | 11 #include "chrome/common/variations/experiment_labels.h" |
| 12 #include "chrome/installer/util/google_update_settings.h" | 12 #include "chrome/installer/util/google_update_settings.h" |
| 13 #include "chrome/installer/util/install_util.h" | 13 #include "chrome/installer/util/install_util.h" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 // Delay before performing a registry sync, in seconds. | 17 // Delay before performing a registry sync, in seconds. |
| 18 const int kRegistrySyncDelaySeconds = 5; | 18 const int kRegistrySyncDelaySeconds = 5; |
| 19 | 19 |
| 20 } // namespace | 20 } // namespace |
| 21 | 21 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 CombineExperimentLabels(variation_labels, other_labels); | 75 CombineExperimentLabels(variation_labels, other_labels); |
| 76 | 76 |
| 77 if (!GoogleUpdateSettings::SetExperimentLabels(is_system_install, | 77 if (!GoogleUpdateSettings::SetExperimentLabels(is_system_install, |
| 78 combined_labels)) { | 78 combined_labels)) { |
| 79 DVLOG(1) << "Error writing Variation labels to the registry: " | 79 DVLOG(1) << "Error writing Variation labels to the registry: " |
| 80 << combined_labels; | 80 << combined_labels; |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 | 83 |
| 84 } // namespace chrome_variations | 84 } // namespace chrome_variations |
| OLD | NEW |