summaryrefslogtreecommitdiffstats
path: root/chromecast
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-06-09 11:05:24 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-09 18:05:54 +0000
commit6ee6fd6efabf8b87324d0b233ea2332c4a0e1642 (patch)
tree42d916d8ab1f88a91cc10b79a8adb1a75da2cfaa /chromecast
parenta99b6c8af0c0fec47f1aa46b4b8598b3586a7a69 (diff)
downloadchromium_src-6ee6fd6efabf8b87324d0b233ea2332c4a0e1642.zip
chromium_src-6ee6fd6efabf8b87324d0b233ea2332c4a0e1642.tar.gz
chromium_src-6ee6fd6efabf8b87324d0b233ea2332c4a0e1642.tar.bz2
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}
Diffstat (limited to 'chromecast')
-rw-r--r--chromecast/base/process_utils.cc5
1 files changed, 3 insertions, 2 deletions
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 <stdio.h>
#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<std::string>& 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;
}