Index: sandbox/win/tests/common/controller.cc |
diff --git a/sandbox/win/tests/common/controller.cc b/sandbox/win/tests/common/controller.cc |
index c9c63aedbe393240ef03328d7b8194b40dfdb870..3b7105780b2c4184053b005cbd10e5a1973b31ff 100644 |
--- a/sandbox/win/tests/common/controller.cc |
+++ b/sandbox/win/tests/common/controller.cc |
@@ -213,12 +213,8 @@ int TestRunner::InternalRunTest(const wchar_t* command) { |
target_process_id_ = 0; |
} |
- if (disable_csrss_) { |
- // Close all ALPC ports to disable CSRSS. |
- if (base::win::GetVersion() >= base::win::VERSION_WIN8) { |
- policy_->AddKernelObjectToClose(L"ALPC Port", NULL); |
- } |
- } |
+ if (disable_csrss_) |
+ policy_->SetDisconnectCsrss(); |
// Get the path to the sandboxed process. |
wchar_t prog_name[MAX_PATH]; |