Commit 5b8c7fa4 authored by wfh's avatar wfh Committed by Commit bot

Re-enable handle closer on Windows 10.

BUG=452613,456193

Review URL: https://codereview.chromium.org/920853004

Cr-Commit-Position: refs/heads/master@{#317024}
parent 792cef16
...@@ -46,13 +46,6 @@ bool FlushCachedRegHandles() { ...@@ -46,13 +46,6 @@ bool FlushCachedRegHandles() {
// Checks if we have handle entries pending and runs the closer. // Checks if we have handle entries pending and runs the closer.
bool CloseOpenHandles() { bool CloseOpenHandles() {
// Windows 10 has FLG_ENABLE_HANDLE_EXCEPTIONS enabled by default so causes
// exceptions to be raised if target process attempts to close a handle that
// has already been closed by HandleCloser. Therefore, do not close any
// handles on Windows 10 until this flag is removed by MS.
// See crbug.com/452613.
if (base::win::GetVersion() == base::win::VERSION_WIN10)
return true;
if (sandbox::HandleCloserAgent::NeedsHandlesClosed()) { if (sandbox::HandleCloserAgent::NeedsHandlesClosed()) {
sandbox::HandleCloserAgent handle_closer; sandbox::HandleCloserAgent handle_closer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment