File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 39
39
#include " breakpad/src/common/memory.h"
40
40
#include " content/nw/src/breakpad_linux_impl.h"
41
41
#include " chrome/common/child_process_logging.h"
42
+ #include " chrome/common/chrome_paths.h"
42
43
#include " components/breakpad/breakpad_client.h"
43
44
#include " content/public/common/content_descriptors.h"
44
45
#include " content/public/common/content_switches.h"
@@ -1716,3 +1717,13 @@ void InitNonBrowserCrashReporterForAndroid() {
1716
1717
bool IsCrashReporterEnabled () {
1717
1718
return g_is_crash_reporter_enabled;
1718
1719
}
1720
+
1721
+ bool SetCrashDumpPath (const char * path) {
1722
+ if (!g_breakpad)
1723
+ return false ;
1724
+ g_breakpad->set_minidump_descriptor (MinidumpDescriptor (path));
1725
+ base::FilePath filepath (path);
1726
+ // for renderer dumps
1727
+ PathService::Override (chrome::DIR_CRASH_DUMPS, filepath);
1728
+ return true ;
1729
+ }
Original file line number Diff line number Diff line change @@ -22,4 +22,5 @@ extern void InitNonBrowserCrashReporterForAndroid();
22
22
// whether InitCrashReporter() is called.
23
23
bool IsCrashReporterEnabled ();
24
24
25
+ bool SetCrashDumpPath (const char * path );
25
26
#endif // CHROME_APP_BREAKPAD_LINUX_H_
You can’t perform that action at this time.
0 commit comments