| 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 #ifndef COMPONENTS_STARTUP_METRIC_UTILS_FILE_PRE_READ_FIELD_TRIAL_UTILS_WIN_H_ | 5 #ifndef COMPONENTS_STARTUP_METRIC_UTILS_COMMON_PRE_READ_FIELD_TRIAL_UTILS_WIN_H_ |
| 6 #define COMPONENTS_STARTUP_METRIC_UTILS_FILE_PRE_READ_FIELD_TRIAL_UTILS_WIN_H_ | 6 #define COMPONENTS_STARTUP_METRIC_UTILS_COMMON_PRE_READ_FIELD_TRIAL_UTILS_WIN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 | 12 |
| 13 // Utility functions to support the PreRead field trial. The PreRead field trial | 13 // Utility functions to support the PreRead field trial. The PreRead field trial |
| 14 // changes the way DLLs are pre-read during startup. | 14 // changes the way DLLs are pre-read during startup. |
| 15 | 15 |
| 16 namespace startup_metric_utils { | 16 namespace startup_metric_utils { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 43 // (metrics::MetricsLog) is created. Otherwise, UMA metrics generated during | 43 // (metrics::MetricsLog) is created. Otherwise, UMA metrics generated during |
| 44 // startup won't be correctly annotated. |product_registry_path| is the registry | 44 // startup won't be correctly annotated. |product_registry_path| is the registry |
| 45 // path under which the key for this field trial resides. | 45 // path under which the key for this field trial resides. |
| 46 void RegisterPreReadSyntheticFieldTrial( | 46 void RegisterPreReadSyntheticFieldTrial( |
| 47 const base::string16& product_registry_path, | 47 const base::string16& product_registry_path, |
| 48 const RegisterPreReadSyntheticFieldTrialCallback& | 48 const RegisterPreReadSyntheticFieldTrialCallback& |
| 49 register_synthetic_field_trial); | 49 register_synthetic_field_trial); |
| 50 | 50 |
| 51 } // namespace startup_metric_utils | 51 } // namespace startup_metric_utils |
| 52 | 52 |
| 53 #endif // COMPONENTS_STARTUP_METRIC_UTILS_FILE_PRE_READ_FIELD_TRIAL_UTILS_WIN_H
_ | 53 #endif // COMPONENTS_STARTUP_METRIC_UTILS_COMMON_PRE_READ_FIELD_TRIAL_UTILS_WIN
_H_ |
| OLD | NEW |