| Index: base/process/process_posix.cc
|
| diff --git a/base/process/process_posix.cc b/base/process/process_posix.cc
|
| index 389bf76b39a7397828e04b49abc3731c2c469507..eacfce661212911ce12405381b0907a406a6e3f0 100644
|
| --- a/base/process/process_posix.cc
|
| +++ b/base/process/process_posix.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -250,12 +250,12 @@ Process Process::DeprecatedGetProcessFromHandle(ProcessHandle handle) {
|
| return Process(handle);
|
| }
|
|
|
| -#if !defined(OS_LINUX)
|
| +#if !defined(OS_LINUX) && !defined(OS_MACOSX)
|
| // static
|
| bool Process::CanBackgroundProcesses() {
|
| return false;
|
| }
|
| -#endif // !defined(OS_LINUX)
|
| +#endif // !defined(OS_LINUX) && !defined(OS_MACOSX)
|
|
|
| bool Process::IsValid() const {
|
| return process_ != kNullProcessHandle;
|
| @@ -350,7 +350,7 @@ bool Process::WaitForExitWithTimeout(TimeDelta timeout, int* exit_code) {
|
| return WaitForExitWithTimeoutImpl(Handle(), exit_code, timeout);
|
| }
|
|
|
| -#if !defined(OS_LINUX)
|
| +#if !defined(OS_LINUX) && !defined(OS_MACOSX)
|
| bool Process::IsProcessBackgrounded() const {
|
| // See SetProcessBackgrounded().
|
| DCHECK(IsValid());
|
| @@ -358,13 +358,13 @@ bool Process::IsProcessBackgrounded() const {
|
| }
|
|
|
| bool Process::SetProcessBackgrounded(bool value) {
|
| - // POSIX only allows lowering the priority of a process, so if we
|
| - // were to lower it we wouldn't be able to raise it back to its initial
|
| - // priority.
|
| - DCHECK(IsValid());
|
| + // Not implemented for POSIX systems other than Mac and Linux. With POSIX, if
|
| + // we were to lower the process priority we wouldn't be able to raise it back
|
| + // to its initial priority.
|
| + NOTIMPLEMENTED();
|
| return false;
|
| }
|
| -#endif // !defined(OS_LINUX)
|
| +#endif // !defined(OS_LINUX) && !defined(OS_MACOSX)
|
|
|
| int Process::GetPriority() const {
|
| DCHECK(IsValid());
|
|
|