summaryrefslogtreecommitdiffstats
path: root/components/browser_watcher/exit_code_watcher_win_unittest.cc
diff options
context:
space:
mode:
authorrvargas <rvargas@chromium.org>2015-01-23 12:36:44 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-23 20:37:27 +0000
commit17a407d8909846afcb50a6e29bc3686876fbfa03 (patch)
tree810dc99f73b9f17a0854224df9dca35b96983533 /components/browser_watcher/exit_code_watcher_win_unittest.cc
parentc742ea924974388a15ef160e82e3f0b7895d5dc8 (diff)
downloadchromium_src-17a407d8909846afcb50a6e29bc3686876fbfa03.zip
chromium_src-17a407d8909846afcb50a6e29bc3686876fbfa03.tar.gz
chromium_src-17a407d8909846afcb50a6e29bc3686876fbfa03.tar.bz2
Move OpenProcessHandleWithAccess to Process::OpenWithAccess.
This removes another source of raw process handles. BUG=417532 Review URL: https://codereview.chromium.org/860453002 Cr-Commit-Position: refs/heads/master@{#312919}
Diffstat (limited to 'components/browser_watcher/exit_code_watcher_win_unittest.cc')
-rw-r--r--components/browser_watcher/exit_code_watcher_win_unittest.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/components/browser_watcher/exit_code_watcher_win_unittest.cc b/components/browser_watcher/exit_code_watcher_win_unittest.cc
index a6da2a5..c4410fb 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) {