diff options
author | scottmg <scottmg@chromium.org> | 2016-02-17 20:51:59 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-18 04:53:12 +0000 |
commit | 6b133b55a1a9c231e76f9d774cba1ff5644f99c6 (patch) | |
tree | 1ff8bc1a395cef80273adbb76cdb5bb0452e5482 | |
parent | 4e908a133355f880ff8b744b7ad4ebc44ec5dea5 (diff) | |
download | chromium_src-6b133b55a1a9c231e76f9d774cba1ff5644f99c6.zip chromium_src-6b133b55a1a9c231e76f9d774cba1ff5644f99c6.tar.gz chromium_src-6b133b55a1a9c231e76f9d774cba1ff5644f99c6.tar.bz2 |
win crashpad: Enable capture of indirect stack data
This won't affect Stable based on https://code.google.com/p/chromium/codesearch#chromium/src/chrome/app/chrome_crash_reporter_client.cc&l=182 .
R=mark@chromium.org,siggi@chromium.org
BUG=587139, 586622
Review URL: https://codereview.chromium.org/1707203002
Cr-Commit-Position: refs/heads/master@{#376098}
-rw-r--r-- | components/crash/content/app/crashpad_win.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/crash/content/app/crashpad_win.cc b/components/crash/content/app/crashpad_win.cc index 6c45bf3..419a051 100644 --- a/components/crash/content/app/crashpad_win.cc +++ b/components/crash/content/app/crashpad_win.cc @@ -75,6 +75,14 @@ base::FilePath PlatformCrashpadInitialization(bool initial_client, base::FilePath exe_file; CHECK(PathService::Get(base::FILE_EXE, &exe_file)); + bool is_per_user_install = + crash_reporter_client->GetIsPerUserInstall(exe_file); + if (crash_reporter_client->GetShouldDumpLargerDumps(is_per_user_install)) { + crashpad::CrashpadInfo::GetCrashpadInfo() + ->set_gather_indirectly_referenced_memory( + crashpad::TriState::kEnabled); + } + // If the handler is embedded in the binary (e.g. chrome, setup), we // reinvoke it with --type=crashpad-handler. Otherwise, we use the // standalone crashpad_handler.exe (for tests, etc.). |