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

Unified Diff: base/debug/dump_without_crashing.cc

Issue 2638573002: Add result to DumpWithoutCrashing, to indicate whether it did anything. (Closed)
Patch Set: Created 3 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 | « base/debug/dump_without_crashing.h ('k') | components/browser_sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/dump_without_crashing.cc
diff --git a/base/debug/dump_without_crashing.cc b/base/debug/dump_without_crashing.cc
index 47fd873c19fd084c51d5e48455db040269ca47b3..4b338ca2930b69d110fd545176029aec75f9cd4a 100644
--- a/base/debug/dump_without_crashing.cc
+++ b/base/debug/dump_without_crashing.cc
@@ -18,9 +18,12 @@ namespace base {
namespace debug {
-void DumpWithoutCrashing() {
- if (dump_without_crashing_function_)
+bool DumpWithoutCrashing() {
+ if (dump_without_crashing_function_) {
(*dump_without_crashing_function_)();
+ return true;
+ }
+ return false;
}
void SetDumpWithoutCrashingFunction(void (CDECL *function)()) {
« no previous file with comments | « base/debug/dump_without_crashing.h ('k') | components/browser_sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698