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

Unified Diff: base/process/kill_posix.cc

Issue 651253002: Enforce handle ownership in base::Process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove old class Created 6 years, 2 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
« no previous file with comments | « base/base.gyp ('k') | base/process/process.h » ('j') | base/process/process.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/kill_posix.cc
diff --git a/base/process/kill_posix.cc b/base/process/kill_posix.cc
index d4ca72696bf0f664cd33d04ea2f6cf3437d6ec3d..bc9d1b3795305e602fd93fc6fb0840a2cf8549c8 100644
--- a/base/process/kill_posix.cc
+++ b/base/process/kill_posix.cc
@@ -354,7 +354,7 @@ static bool WaitForSingleNonChildProcess(ProcessHandle handle,
bool WaitForSingleProcess(ProcessHandle handle, base::TimeDelta wait) {
ProcessHandle parent_pid = GetParentProcessId(handle);
- ProcessHandle our_pid = Process::Current().handle();
+ ProcessHandle our_pid = GetCurrentProcessHandle();
if (parent_pid != our_pid) {
#if defined(OS_MACOSX)
// On Mac we can wait on non child processes.
« no previous file with comments | « base/base.gyp ('k') | base/process/process.h » ('j') | base/process/process.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698