diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-01 15:36:39 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-01 15:36:39 +0000 |
commit | 620bbbbf6976cb1f87f1582cae1a1657d0c8200f (patch) | |
tree | 2fc436441c86f503ef006d076e413d0cc9047b4f /chrome/app | |
parent | 20bb22593a07fe001aa7a4e326c36385e13c9002 (diff) | |
download | chromium_src-620bbbbf6976cb1f87f1582cae1a1657d0c8200f.zip chromium_src-620bbbbf6976cb1f87f1582cae1a1657d0c8200f.tar.gz chromium_src-620bbbbf6976cb1f87f1582cae1a1657d0c8200f.tar.bz2 |
Make the HardErrorHandler go through breakpad client interface.
BUG=247431
R=bauerb@chromium.org
Review URL: https://codereview.chromium.org/20485003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215039 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r-- | chrome/app/hard_error_handler_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/app/hard_error_handler_win.cc b/chrome/app/hard_error_handler_win.cc index 6f56666..92c168a 100644 --- a/chrome/app/hard_error_handler_win.cc +++ b/chrome/app/hard_error_handler_win.cc @@ -14,7 +14,7 @@ #include "base/basictypes.h" #include "base/strings/string_util.h" -#include "chrome/common/env_vars.h" +#include "components/breakpad/breakpad_client.h" namespace { const DWORD kExceptionModuleNotFound = VcppException(ERROR_SEVERITY_ERROR, @@ -37,7 +37,7 @@ DWORD FacilityFromException(DWORD exception_code) { void RaiseHardErrorMsg(long nt_status, const std::string& p1, const std::string& p2) { // If headless just exit silently. - if (::GetEnvironmentVariableA(env_vars::kHeadless, NULL, 0)) + if (breakpad::GetBreakpadClient()->IsRunningUnattended()) return; HMODULE ntdll = ::GetModuleHandleA("NTDLL.DLL"); |