| Index: chrome/common/stack_sampling_configuration.h
|
| diff --git a/chrome/browser/stack_sampling_configuration.h b/chrome/common/stack_sampling_configuration.h
|
| similarity index 73%
|
| rename from chrome/browser/stack_sampling_configuration.h
|
| rename to chrome/common/stack_sampling_configuration.h
|
| index 9a52b037b7e4769c7d4980a9603465f009b1992f..c38c5f2bf6d21937918199905d8508d0271156e9 100644
|
| --- a/chrome/browser/stack_sampling_configuration.h
|
| +++ b/chrome/common/stack_sampling_configuration.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_STACK_SAMPLING_CONFIGURATION_H_
|
| -#define CHROME_BROWSER_STACK_SAMPLING_CONFIGURATION_H_
|
| +#ifndef CHROME_COMMON_STACK_SAMPLING_CONFIGURATION_H_
|
| +#define CHROME_COMMON_STACK_SAMPLING_CONFIGURATION_H_
|
|
|
| #include "base/macros.h"
|
| #include "base/profiler/stack_sampling_profiler.h"
|
| @@ -21,8 +21,10 @@ class StackSamplingConfiguration {
|
| // Returns true if the profiler should be started at all.
|
| bool IsProfilerEnabled() const;
|
|
|
| - // Register the chosen configuration as a synthetic field trial.
|
| - void RegisterSyntheticFieldTrial() const;
|
| + // Get the synthetic field trial configuration. Returns true if a synthetic
|
| + // field trial should be registered.
|
| + bool GetSyntheticFieldTrial(std::string* trial_name,
|
| + std::string* group_name) const;
|
|
|
| private:
|
| enum ProfileConfiguration {
|
| @@ -41,4 +43,4 @@ class StackSamplingConfiguration {
|
| DISALLOW_COPY_AND_ASSIGN(StackSamplingConfiguration);
|
| };
|
|
|
| -#endif // CHROME_BROWSER_STACK_SAMPLING_CONFIGURATION_H_
|
| +#endif // CHROME_COMMON_STACK_SAMPLING_CONFIGURATION_H_
|
|
|