Startup hang - Dump the call stacks of all threads if
ThreadWatcherdoesn't start watching all threads in 5 mins.

In Debug mode, it doesa DCHECK and in release mode it dumps
the callstack on windows, butdoesn't crash the browser.

TODO: need to implement code to get stack traces on other
platforms. This is a partial fix to chromium-os:20487.

BUG=97997, chromium-os:20487
Test=ThreadWatcher and startup tests
R=jar

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104644 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/common/logging_chrome.cc b/chrome/common/logging_chrome.cc
index 8c212135..0b7f726 100644
--- a/chrome/common/logging_chrome.cc
+++ b/chrome/common/logging_chrome.cc
@@ -449,4 +449,14 @@
   return assertion_count;
 }
 
+
+void DumpWithoutCrashing() {
+#if defined(OS_WIN)
+  std::string str;
+  DumpProcessAssertHandler(str);
+#else
+  NOTIMPLEMENTED();
+#endif  // OS_WIN
+}
+
 }  // namespace logging