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

Unified Diff: base/debug/stack_trace_posix.cc

Issue 9315044: Get rid of <iostream> include in stack_trace_posix (forces a static initializer) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/stack_trace_posix.cc
diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc
index 75dd10d3d75ce8cfaa9c0ef7c24d347067b9de64..2097853a0ae4e2e7f9ae8ca54d5ba90784cd2323 100644
--- a/base/debug/stack_trace_posix.cc
+++ b/base/debug/stack_trace_posix.cc
@@ -25,8 +25,6 @@
#include <AvailabilityMacros.h>
#endif
-#include <iostream>
-
#include "base/basictypes.h"
#include "base/eintr_wrapper.h"
#include "base/logging.h"
@@ -170,7 +168,7 @@ void StackTrace::PrintBacktrace() const {
std::vector<std::string> trace_strings;
GetBacktraceStrings(trace_, count_, &trace_strings, NULL);
for (size_t i = 0; i < trace_strings.size(); ++i) {
- std::cerr << "\t" << trace_strings[i] << "\n";
+ fprintf(stderr, "\t%s\n", trace_strings[i].c_str());
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698