summaryrefslogtreecommitdiff
path: root/chromium/base/profiler/stack_sampler_mac.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/profiler/stack_sampler_mac.cc')
-rw-r--r--chromium/base/profiler/stack_sampler_mac.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/base/profiler/stack_sampler_mac.cc b/chromium/base/profiler/stack_sampler_mac.cc
index 109f6425835..e88dfc57904 100644
--- a/chromium/base/profiler/stack_sampler_mac.cc
+++ b/chromium/base/profiler/stack_sampler_mac.cc
@@ -16,14 +16,14 @@ namespace base {
std::unique_ptr<StackSampler> StackSampler::Create(
SamplingProfilerThreadToken thread_token,
ModuleCache* module_cache,
- std::unique_ptr<Unwinder> native_unwinder,
+ std::vector<std::unique_ptr<Unwinder>> core_unwinders,
StackSamplerTestDelegate* test_delegate) {
- DCHECK(!native_unwinder);
+ DCHECK(core_unwinders.empty());
+ core_unwinders.push_back(std::make_unique<NativeUnwinderMac>(module_cache));
return std::make_unique<StackSamplerImpl>(
std::make_unique<StackCopierSuspend>(
std::make_unique<SuspendableThreadDelegateMac>(thread_token)),
- std::make_unique<NativeUnwinderMac>(module_cache), module_cache,
- test_delegate);
+ std::move(core_unwinders), module_cache, test_delegate);
}
// static