From 605d4021211e9e2ff0278c9e21f3b567c0bc7029 Mon Sep 17 00:00:00 2001 From: Wiktor Garbacz Date: Fri, 14 Jun 2019 02:08:43 -0700 Subject: [PATCH] Use new function naming PiperOrigin-RevId: 253191002 Change-Id: If00c0effb925b3e294593f272447cd8386228bac --- sandboxed_api/sandbox2/executor.cc | 2 +- sandboxed_api/sandbox2/namespace.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sandboxed_api/sandbox2/executor.cc b/sandboxed_api/sandbox2/executor.cc index a01e870..d4c8873 100644 --- a/sandboxed_api/sandbox2/executor.cc +++ b/sandboxed_api/sandbox2/executor.cc @@ -129,7 +129,7 @@ pid_t Executor::StartSubProcess(int32_t clone_flags, const Namespace* ns, if (ns) { clone_flags |= ns->GetCloneFlags(); *request.mutable_mount_tree() = ns->mounts().GetMountTree(); - request.set_hostname(ns->GetHostname()); + request.set_hostname(ns->hostname()); } request.set_clone_flags(clone_flags); diff --git a/sandboxed_api/sandbox2/namespace.h b/sandboxed_api/sandbox2/namespace.h index de49cf1..4e87569 100644 --- a/sandboxed_api/sandbox2/namespace.h +++ b/sandboxed_api/sandbox2/namespace.h @@ -56,7 +56,6 @@ class Namespace final { const Mounts& mounts() const { return mounts_; } const std::string& hostname() const { return hostname_; } - const std::string& GetHostname() const { return hostname_; } private: friend class StackTracePeer;