Skip to content

Commit da7a71d

Browse files
committed
Fix crash dump
See nwjs#3226
1 parent 05cf680 commit da7a71d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/browser/chrome_crash_reporter_client.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ bool ChromeCrashReporterClient::ReportingIsEnforcedByPolicy(
284284
return true;
285285
}
286286
#endif
287-
return false;
287+
return true;
288288
}
289289
#endif // defined(OS_WIN)
290290

@@ -326,8 +326,7 @@ size_t ChromeCrashReporterClient::RegisterCrashKeys() {
326326
}
327327

328328
bool ChromeCrashReporterClient::IsRunningUnattended() {
329-
scoped_ptr<base::Environment> env(base::Environment::Create());
330-
return env->HasVar(env_vars::kHeadless);
329+
return true;
331330
}
332331

333332
bool ChromeCrashReporterClient::GetCollectStatsConsent() {

0 commit comments

Comments
 (0)