| Index: chrome/app/chrome_main_delegate.cc
|
| diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
|
| index 050b184e21f0c9aae3f3c8e8711b6ed4fed387e8..cd33bb5f5764686d03e994d9bad96f45af4174f0 100644
|
| --- a/chrome/app/chrome_main_delegate.cc
|
| +++ b/chrome/app/chrome_main_delegate.cc
|
| @@ -44,6 +44,7 @@
|
| #include <atlbase.h>
|
| #include <malloc.h>
|
| #include <algorithm>
|
| +#include "chrome/app/close_handle_hook_win.h"
|
| #include "chrome/common/child_process_logging.h"
|
| #include "chrome/common/terminate_on_heap_corruption_experiment_win.h"
|
| #include "sandbox/win/src/sandbox.h"
|
| @@ -416,6 +417,8 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exit_code) {
|
| *exit_code = 1;
|
| return true;
|
| }
|
| +
|
| + InstallCloseHandleHooks();
|
| #endif
|
|
|
| chrome::RegisterPathProvider();
|
| @@ -834,6 +837,10 @@ void ChromeMainDelegate::ProcessExiting(const std::string& process_type) {
|
| // Android doesn't use InitChromeLogging, so we close the log file manually.
|
| logging::CloseLogFile();
|
| #endif // !defined(OS_ANDROID)
|
| +
|
| +#if defined(OS_WIN)
|
| + RemoveCloseHandleHooks();
|
| +#endif
|
| }
|
|
|
| #if defined(OS_MACOSX)
|
|
|