Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(224)

Unified Diff: base/debug/stack_trace.cc

Issue 2632643004: Remove WTFReportAssertionFailure and WTFReportBacktrace. (Closed)
Patch Set: Address review comments Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/debug/stack_trace.h ('k') | base/debug/stack_trace_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/stack_trace.cc
diff --git a/base/debug/stack_trace.cc b/base/debug/stack_trace.cc
index fb2f6b508f2e0e582299e4321c9b5ef117cd8e53..94ff7d0755ab50a650ebcee9dfbe05ab287972b2 100644
--- a/base/debug/stack_trace.cc
+++ b/base/debug/stack_trace.cc
@@ -192,6 +192,8 @@ void* LinkStackFrames(void* fpp, void* parent_fp) {
} // namespace
+StackTrace::StackTrace() : StackTrace(arraysize(trace_)) {}
+
StackTrace::StackTrace(const void* const* trace, size_t count) {
count = std::min(count, arraysize(trace_));
if (count)
@@ -199,9 +201,6 @@ StackTrace::StackTrace(const void* const* trace, size_t count) {
count_ = count;
}
-StackTrace::~StackTrace() {
-}
-
const void *const *StackTrace::Addresses(size_t* count) const {
*count = count_;
if (count_)
« no previous file with comments | « base/debug/stack_trace.h ('k') | base/debug/stack_trace_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698