Index: chrome/test/base/layout_test_http_server.cc |
diff --git a/chrome/test/base/layout_test_http_server.cc b/chrome/test/base/layout_test_http_server.cc |
index 7ae0891d9b2071498b92f6217d642f2900edc432..b0ba02dd376f18aa69ed6ea9742375696374b1f1 100644 |
--- a/chrome/test/base/layout_test_http_server.cc |
+++ b/chrome/test/base/layout_test_http_server.cc |
@@ -87,11 +87,7 @@ bool LayoutTestHttpServer::Start() { |
return false; |
} |
- JOBOBJECT_EXTENDED_LIMIT_INFORMATION limit_info = {0}; |
- limit_info.BasicLimitInformation.LimitFlags = |
- JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE; |
- if (0 == SetInformationJobObject(job_handle_.Get(), |
- JobObjectExtendedLimitInformation, &limit_info, sizeof(limit_info))) { |
+ if (!base::SetJobObjectAsKillOnJobClose(job_handle_.Get())) { |
LOG(ERROR) << "Could not SetInformationJobObject."; |
return false; |
} |
@@ -136,4 +132,3 @@ bool LayoutTestHttpServer::Stop() { |
return stopped; |
} |
- |