Add StackTrace::ToString().

This can be used for debug logging like:

  LOG(ERROR) << base::debug::StackTrace().ToString();

As opposed to

  std::strstream stream;
  base::debug::StackTrace().OutputToStream(&stream);
  LOG(ERROR) << stream.str();

BUG=none
TEST=add a test to stack_unitttest and confirm it passes


Review URL: http://codereview.chromium.org/8206015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105085 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: d4114baa6a01b346441eae309493c31149d8296a
3 files changed
tree: f1605c0229dad669498390414733a44a3166523c
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/