| Index: base/win/win_util.h
|
| diff --git a/base/win/win_util.h b/base/win/win_util.h
|
| index 66c50165babf7fcdddfa12963db67eb4401d6bd0..817df96d0189de1d8745cce4a6ae177c04eebde0 100644
|
| --- a/base/win/win_util.h
|
| +++ b/base/win/win_util.h
|
| @@ -93,6 +93,14 @@ BASE_EXPORT bool ReadCommandFromAutoRun(HKEY root_key,
|
| const string16& name,
|
| string16* command);
|
|
|
| +// Sets whether to crash the process during exit. This is inspected by DLLMain
|
| +// and used to intercept unexpected terminations of the process (via calls to
|
| +// exit(), abort(), _exit(), ExitProcess()) and convert them into crashes.
|
| +// Note that not all mechanisms for terminating the process are covered by
|
| +// this. In particular, TerminateProcess() is not caught.
|
| +BASE_EXPORT void SetShouldCrashOnProcessDetach(bool crash);
|
| +BASE_EXPORT bool ShouldCrashOnProcessDetach();
|
| +
|
| // Get the size of a struct up to and including the specified member.
|
| // This is necessary to set compatible struct sizes for different versions
|
| // of certain Windows APIs (e.g. SystemParametersInfo).
|
|
|