Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(493)

Unified Diff: components/browser_watcher/exit_code_watcher_win_unittest.cc

Issue 860453002: Move OpenProcessHandleWithAccess to Process::OpenWithAccess. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ServiceProcessControlBrowserTest.Setup again Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698