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

Unified Diff: base/process/process_handle_fuchsia.cc

Issue 2692273008: Hacky slashy (Closed)
Patch Set: rebase on config CL, and minor fixes Created 3 years, 7 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/process/process_handle.h ('k') | base/process/process_info_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « base/process/process_handle.h ('k') | base/process/process_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698