| Index: base/process/process_handle_fuchsia.cc
|
| diff --git a/base/process/process_handle_fuchsia.cc b/base/process/process_handle_fuchsia.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bf1f94760eba87b997eca61528c9e917ce3065cc
|
| --- /dev/null
|
| +++ b/base/process/process_handle_fuchsia.cc
|
| @@ -0,0 +1,25 @@
|
| +// Copyright 2017 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.
|
| +
|
| +#include "base/macros.h"
|
| +#include "base/process/process_handle.h"
|
| +
|
| +#include <magenta/syscalls.h>
|
| +
|
| +namespace base {
|
| +
|
| +ProcessId GetParentProcessId(ProcessHandle process) {
|
| + // TODO(scottmg): Port.
|
| + return 0;
|
| +}
|
| +
|
| +FilePath GetProcessExecutablePath(ProcessHandle process) {
|
| + char name[MX_MAX_NAME_LEN] = {0};
|
| + mx_object_get_property(process, MX_PROP_NAME, name, sizeof(name));
|
| + // Even if the return value is not NO_ERROR, we can't do much better than
|
| + // empty anyway, so return name either way.
|
| + return FilePath(name);
|
| +}
|
| +
|
| +} // namespace base
|
|
|