| Index: components/browser_watcher/exit_code_watcher_win_unittest.cc
|
| diff --git a/components/browser_watcher/exit_code_watcher_win_unittest.cc b/components/browser_watcher/exit_code_watcher_win_unittest.cc
|
| index a6da2a505414544e8e9b9aa0f4619a99d52c43e0..c4410fb9f02a83a0d21eff590560dd9bc22ccd35 100644
|
| --- a/components/browser_watcher/exit_code_watcher_win_unittest.cc
|
| +++ b/components/browser_watcher/exit_code_watcher_win_unittest.cc
|
| @@ -98,10 +98,7 @@ class ExitCodeWatcherTest : public testing::Test {
|
| }
|
|
|
| base::Process OpenSelfWithAccess(uint32 access) {
|
| - HANDLE self = nullptr;
|
| - EXPECT_TRUE(base::OpenProcessHandleWithAccess(base::GetCurrentProcId(),
|
| - access, &self));
|
| - return base::Process(self);
|
| + return base::Process::OpenWithAccess(base::GetCurrentProcId(), access);
|
| }
|
|
|
| void VerifyWroteExitCode(base::ProcessId proc_id, int exit_code) {
|
|
|