| Index: chrome/app/breakpad_mac.mm
|
| diff --git a/chrome/app/breakpad_mac.mm b/chrome/app/breakpad_mac.mm
|
| index a57f18c01a2175053030240f44d83a493021fbdf..18de7e6c1e1c0cd43e0313f8a52ab7f65c520353 100644
|
| --- a/chrome/app/breakpad_mac.mm
|
| +++ b/chrome/app/breakpad_mac.mm
|
| @@ -24,7 +24,6 @@
|
| #include "base/threading/thread_restrictions.h"
|
| #import "breakpad/src/client/mac/Framework/Breakpad.h"
|
| #include "chrome/common/child_process_logging.h"
|
| -#include "chrome/common/env_vars.h"
|
| #include "chrome/installer/util/google_update_settings.h"
|
| #include "content/public/common/content_switches.h"
|
| #include "components/breakpad/breakpad_client.h"
|
| @@ -193,7 +192,7 @@ void InitCrashReporter() {
|
| // preference or through an environment variable, but the kDisableBreakpad
|
| // switch overrides both.
|
| enable_breakpad = GoogleUpdateSettings::GetCollectStatsConsent() ||
|
| - getenv(env_vars::kHeadless) != NULL;
|
| + breakpad::GetBreakpadClient()->IsRunningUnattended();
|
| enable_breakpad &= !command_line->HasSwitch(switches::kDisableBreakpad);
|
| }
|
| } else {
|
|
|