| Index: base/debug/stack_trace.cc
|
| diff --git a/base/debug/stack_trace.cc b/base/debug/stack_trace.cc
|
| index fb2f6b508f2e0e582299e4321c9b5ef117cd8e53..8092bbbb2c5448e0d628131613b16b810be642e2 100644
|
| --- a/base/debug/stack_trace.cc
|
| +++ b/base/debug/stack_trace.cc
|
| @@ -199,7 +199,8 @@ StackTrace::StackTrace(const void* const* trace, size_t count) {
|
| count_ = count;
|
| }
|
|
|
| -StackTrace::~StackTrace() {
|
| +StackTrace StackTrace::Truncate(size_t max_entries) const {
|
| + return StackTrace(trace_, std::min(count_, max_entries));
|
| }
|
|
|
| const void *const *StackTrace::Addresses(size_t* count) const {
|
|
|