summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authortbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-03 04:02:18 +0000
committertbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-03 04:02:18 +0000
commit695f8dd8b46a9e0ee2d3f95fbe0b248e7641f5b5 (patch)
treeab86951b30545806e31f88ea1ec9c9fdcc01a954 /base
parent2c13f711c09f6dc1cac1543b88d7c2eab8b3c90f (diff)
downloadchromium_src-695f8dd8b46a9e0ee2d3f95fbe0b248e7641f5b5.zip
chromium_src-695f8dd8b46a9e0ee2d3f95fbe0b248e7641f5b5.tar.gz
chromium_src-695f8dd8b46a9e0ee2d3f95fbe0b248e7641f5b5.tar.bz2
Get rid of <iostream> include in stack_trace_posix (forces a static initializer)
BUG=94925 TEST=sizes reports one less SI Review URL: http://codereview.chromium.org/9315044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120278 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/debug/stack_trace_posix.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc
index 75dd10d..163f471 100644
--- a/base/debug/stack_trace_posix.cc
+++ b/base/debug/stack_trace_posix.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -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());
}
}