Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: chrome/app/chrome_main_delegate.cc

Issue 510633002: Improve the ScopedHandle verifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment to the lock Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/app/chrome_main_delegate.cc
diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
index 8c965b0c270ba470eaad1a3bc80226643f46bbf6..0aed05b3bf191fd4854f93292dc8b019c0aea526 100644
--- a/chrome/app/chrome_main_delegate.cc
+++ b/chrome/app/chrome_main_delegate.cc
@@ -46,6 +46,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"
@@ -418,6 +419,8 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exit_code) {
*exit_code = 1;
return true;
}
+
+ InstallCloseHandleHooks();
#endif
chrome::RegisterPathProvider();
@@ -839,6 +842,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)
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/app/close_handle_hook_win.h » ('j') | chrome/chrome_dll.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698