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

Unified Diff: base/debug/stack_trace_posix.cc

Issue 6825038: Create a content::ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dependencies. Created 9 years, 8 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
Index: base/debug/stack_trace_posix.cc
diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc
index f1f5408a7fc666f44dbf1d1456ffb07e338775d9..50ff113154474c06146ad4c014f01d1c642b6a89 100644
--- a/base/debug/stack_trace_posix.cc
+++ b/base/debug/stack_trace_posix.cc
@@ -105,7 +105,7 @@ void DemangleSymbols(std::string* text) {
// names and attach these. Otherwise just use raw addresses. Returns true
// if any symbol name is resolved. Returns false on error and *may* fill
// in |error_message| if an error message is available.
-bool GetBacktraceStrings(void **trace, int size,
+bool GetBacktraceStrings(void *const *trace, int size,
std::vector<std::string>* trace_strings,
std::string* error_message) {
bool symbolized = false;
@@ -161,7 +161,7 @@ StackTrace::StackTrace() {
count_ = std::max(backtrace(trace_, arraysize(trace_)), 0);
}
-void StackTrace::PrintBacktrace() {
+void StackTrace::PrintBacktrace() const {
#if defined(OS_MACOSX) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
if (backtrace_symbols_fd == NULL)
return;
@@ -174,7 +174,7 @@ void StackTrace::PrintBacktrace() {
}
}
-void StackTrace::OutputToStream(std::ostream* os) {
+void StackTrace::OutputToStream(std::ostream* os) const {
#if defined(OS_MACOSX) && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
if (backtrace_symbols == NULL)
return;

Powered by Google App Engine
This is Rietveld 408576698