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

Unified Diff: chrome/app/chrome_main.cc

Issue 490043002: Improve the ScopedHandle verifier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Common sources section Created 6 years, 4 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
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/app/close_handle_hook_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_main.cc
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc
index 80cd0fb2f8944215f40ee84c89adb23b886750cc..ba2fce7064264390a25b0c75a544f6a37260018a 100644
--- a/chrome/app/chrome_main.cc
+++ b/chrome/app/chrome_main.cc
@@ -9,6 +9,7 @@
#if defined(OS_WIN)
#include "base/debug/dump_without_crashing.h"
#include "base/win/win_util.h"
+#include "chrome/app/close_handle_hook_win.h"
#include "chrome/common/chrome_constants.h"
#define DLLEXPORT __declspec(dllexport)
@@ -41,6 +42,8 @@ int ChromeMain(int argc, const char** argv) {
params.instance = instance;
params.sandbox_info = sandbox_info;
+ InstallCloseHandleHooks();
+
// SetDumpWithoutCrashingFunction must be passed the DumpProcess function
// from the EXE and not from the DLL in order for DumpWithoutCrashing to
// function correctly.
@@ -57,6 +60,7 @@ int ChromeMain(int argc, const char** argv) {
int rv = content::ContentMain(params);
#if defined(OS_WIN)
+ RemoveCloseHandleHooks();
base::win::SetShouldCrashOnProcessDetach(false);
#endif
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/app/close_handle_hook_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698