summaryrefslogtreecommitdiffstats
path: root/base/debug_util_posix.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-17 23:05:28 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-17 23:05:28 +0000
commitf16339329dd06c7bc6fa409af73907253efad8dc (patch)
tree8303b6a935379ac9a68379f5fd896a6e84d7e5ea /base/debug_util_posix.cc
parent681d27566707595006c468b17c27f8341d176b45 (diff)
downloadchromium_src-f16339329dd06c7bc6fa409af73907253efad8dc.zip
chromium_src-f16339329dd06c7bc6fa409af73907253efad8dc.tar.gz
chromium_src-f16339329dd06c7bc6fa409af73907253efad8dc.tar.bz2
Header cleanup in base.
This makes uses of StringPrintf and friends use the base namespace and include stringprintf.h explicitly. This also removes a bunch of unnecessary string_util includes (which exposed a few other errors like people forgetting to include <vector>. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/3119022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/debug_util_posix.cc')
-rw-r--r--base/debug_util_posix.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/base/debug_util_posix.cc b/base/debug_util_posix.cc
index 110cb20..329c7bc 100644
--- a/base/debug_util_posix.cc
+++ b/base/debug_util_posix.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -13,6 +13,9 @@
#include <sys/types.h>
#include <unistd.h>
+#include <string>
+#include <vector>
+
#if defined(__GLIBCXX__)
#include <cxxabi.h>
#endif
@@ -31,7 +34,7 @@
#include "base/safe_strerror_posix.h"
#include "base/scoped_ptr.h"
#include "base/string_piece.h"
-#include "base/string_util.h"
+#include "base/stringprintf.h"
#if defined(USE_SYMBOLIZE)
#include "base/third_party/symbolize/symbolize.h"
@@ -109,10 +112,11 @@ bool GetBacktraceStrings(void **trace, int size,
symbol, sizeof(symbol))) {
// Don't call DemangleSymbols() here as the symbol is demangled by
// google::Symbolize().
- trace_strings->push_back(StringPrintf("%s [%p]", symbol, trace[i]));
+ trace_strings->push_back(
+ base::StringPrintf("%s [%p]", symbol, trace[i]));
symbolized = true;
} else {
- trace_strings->push_back(StringPrintf("%p", trace[i]));
+ trace_strings->push_back(base::StringPrintf("%p", trace[i]));
}
}
#else
@@ -126,7 +130,7 @@ bool GetBacktraceStrings(void **trace, int size,
symbolized = true;
} else {
for (int i = 0; i < size; ++i) {
- trace_strings->push_back(StringPrintf("%p", trace[i]));
+ trace_strings->push_back(base::StringPrintf("%p", trace[i]));
}
}
#endif // defined(USE_SYMBOLIZE)