| Index: base/process/process_win.cc
|
| diff --git a/base/process/process_win.cc b/base/process/process_win.cc
|
| index 05041b20ddaa7e8f908acc242dce2e45df066046..3e0d79fa8d39dc769f79eb241efaafeee397bb0c 100644
|
| --- a/base/process/process_win.cc
|
| +++ b/base/process/process_win.cc
|
| @@ -39,6 +39,18 @@ Process Process::Current() {
|
| }
|
|
|
| // static
|
| +Process Process::DeprecatedGetProcessFromHandle(ProcessHandle handle) {
|
| + DCHECK_NE(handle, ::GetCurrentProcess());
|
| + ProcessHandle out_handle;
|
| + if (!::DuplicateHandle(GetCurrentProcess(), handle,
|
| + GetCurrentProcess(), &out_handle,
|
| + 0, FALSE, DUPLICATE_SAME_ACCESS)) {
|
| + return Process();
|
| + }
|
| + return Process(out_handle);
|
| +}
|
| +
|
| +// static
|
| bool Process::CanBackgroundProcesses() {
|
| return true;
|
| }
|
|
|