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

Unified Diff: chrome/browser/process_singleton_posix.cc

Issue 1160373004: Move safe_strerror to posix directory and the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 6 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
Index: chrome/browser/process_singleton_posix.cc
diff --git a/chrome/browser/process_singleton_posix.cc b/chrome/browser/process_singleton_posix.cc
index 05e149951d70cd723cffb792c089b064c6273145..28946f4f2322c1347ed16b515262ee98ea30e514 100644
--- a/chrome/browser/process_singleton_posix.cc
+++ b/chrome/browser/process_singleton_posix.cc
@@ -62,8 +62,8 @@
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
#include "base/posix/eintr_wrapper.h"
+#include "base/posix/safe_strerror.h"
#include "base/rand_util.h"
-#include "base/safe_strerror_posix.h"
#include "base/sequenced_task_runner_helpers.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
@@ -135,7 +135,7 @@ int SetCloseOnExec(int fd) {
// Close a socket and check return value.
void CloseSocket(int fd) {
int rv = IGNORE_EINTR(close(fd));
- DCHECK_EQ(0, rv) << "Error closing socket: " << safe_strerror(errno);
+ DCHECK_EQ(0, rv) << "Error closing socket: " << base::safe_strerror(errno);
}
// Write a message to a socket fd.
@@ -1010,7 +1010,7 @@ bool ProcessSingleton::Create() {
}
if (listen(sock, 5) < 0)
- NOTREACHED() << "listen failed: " << safe_strerror(errno);
+ NOTREACHED() << "listen failed: " << base::safe_strerror(errno);
DCHECK(BrowserThread::IsMessageLoopValid(BrowserThread::IO));
BrowserThread::PostTask(
@@ -1069,5 +1069,5 @@ void ProcessSingleton::KillProcess(int pid) {
// ESRCH = No Such Process (can happen if the other process is already in
// progress of shutting down and finishes before we try to kill it).
DCHECK(rv == 0 || errno == ESRCH) << "Error killing process: "
- << safe_strerror(errno);
+ << base::safe_strerror(errno);
}
« no previous file with comments | « base/threading/platform_thread_posix.cc ('k') | chrome/browser/ui/webui/options/certificate_manager_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698