diff options
author | chrisphan@chromium.org <chrisphan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-13 06:40:43 +0000 |
---|---|---|
committer | chrisphan@chromium.org <chrisphan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-13 06:40:43 +0000 |
commit | 4498f49f75db852ec356a55ae55aa1e0e9f615c6 (patch) | |
tree | 3e84f9195ef7fd162d5734e5c8e48d4045e95e81 | |
parent | a78c74365c05e1e7dae30a77754a4689cd1a42bf (diff) | |
download | chromium_src-4498f49f75db852ec356a55ae55aa1e0e9f615c6.zip chromium_src-4498f49f75db852ec356a55ae55aa1e0e9f615c6.tar.gz chromium_src-4498f49f75db852ec356a55ae55aa1e0e9f615c6.tar.bz2 |
Add alternative breakpad location to linux breakpad. This will work like Mac and Windows's method.
Review URL: https://chromiumcodereview.appspot.com/12545017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187799 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/app/breakpad_linux.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/app/breakpad_linux.cc b/chrome/app/breakpad_linux.cc index c540046..af040f4 100644 --- a/chrome/app/breakpad_linux.cc +++ b/chrome/app/breakpad_linux.cc @@ -1431,6 +1431,17 @@ void InitCrashReporter() { if (parsed_command_line.HasSwitch(switches::kDisableBreakpad)) return; + // By setting the BREAKPAD_DUMP_LOCATION environment variable, an alternate + // location to write brekapad crash dumps can be set. + const char* alternate_minidump_location = getenv("BREAKPAD_DUMP_LOCATION"); + if (alternate_minidump_location) { + base::FilePath alternate_minidump_location_path( + alternate_minidump_location); + PathService::Override( + chrome::DIR_CRASH_DUMPS, + base::FilePath(alternate_minidump_location)); + } + const std::string process_type = parsed_command_line.GetSwitchValueASCII(switches::kProcessType); if (process_type.empty()) { |