From 6ee6fd6efabf8b87324d0b233ea2332c4a0e1642 Mon Sep 17 00:00:00 2001 From: brettw Date: Tue, 9 Jun 2015 11:05:24 -0700 Subject: Move safe_strerror to posix directory and the base namespace. Since this is a wrapper around a posix thing that doesn't fall under any other categories, the posix directory is probably the best place. Review URL: https://codereview.chromium.org/1160373004 Cr-Commit-Position: refs/heads/master@{#333524} --- chromecast/base/process_utils.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chromecast') diff --git a/chromecast/base/process_utils.cc b/chromecast/base/process_utils.cc index 901d53d..523fb1c 100644 --- a/chromecast/base/process_utils.cc +++ b/chromecast/base/process_utils.cc @@ -8,7 +8,7 @@ #include #include "base/logging.h" -#include "base/safe_strerror_posix.h" +#include "base/posix/safe_strerror.h" #include "base/strings/string_util.h" namespace chromecast { @@ -22,7 +22,8 @@ bool GetAppOutput(const std::vector& argv, std::string* output) { // Open the process. FILE* fp = popen(command.c_str(), "r"); if (!fp) { - LOG(ERROR) << "popen (" << command << ") failed: " << safe_strerror(errno); + LOG(ERROR) << "popen (" << command << ") failed: " + << base::safe_strerror(errno); return false; } -- cgit v1.1