| Index: base/win/win_util.cc
|
| diff --git a/base/win/win_util.cc b/base/win/win_util.cc
|
| index 15a64450d445d43395b0601a1cd648eb2c7b1e33..849a7719673b446d93a776107e676f0284573898 100644
|
| --- a/base/win/win_util.cc
|
| +++ b/base/win/win_util.cc
|
| @@ -23,6 +23,8 @@
|
| namespace base {
|
| namespace win {
|
|
|
| +static bool g_crash_on_process_detach = false;
|
| +
|
| #define NONCLIENTMETRICS_SIZE_PRE_VISTA \
|
| SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(NONCLIENTMETRICS, lfMessageFont)
|
|
|
| @@ -148,6 +150,14 @@ bool ReadCommandFromAutoRun(HKEY root_key,
|
| return (autorun_key.ReadValue(name.c_str(), command) == ERROR_SUCCESS);
|
| }
|
|
|
| +void SetShouldCrashOnProcessDetach(bool crash) {
|
| + g_crash_on_process_detach = crash;
|
| +}
|
| +
|
| +bool ShouldCrashOnProcessDetach() {
|
| + return g_crash_on_process_detach;
|
| +}
|
| +
|
| } // namespace win
|
| } // namespace base
|
|
|
|
|