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

Unified Diff: base/posix/safe_strerror.h

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
« no previous file with comments | « base/memory/shared_memory_posix.cc ('k') | base/posix/safe_strerror.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/posix/safe_strerror.h
diff --git a/base/safe_strerror_posix.h b/base/posix/safe_strerror.h
similarity index 90%
rename from base/safe_strerror_posix.h
rename to base/posix/safe_strerror.h
index 2f77d84a1b96df127c867ff7bcd3d31bcdc0081a..862a75066ccf1b7ee5b2f96966a23c2fa42ba448 100644
--- a/base/safe_strerror_posix.h
+++ b/base/posix/safe_strerror.h
@@ -2,13 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BASE_SAFE_STRERROR_POSIX_H_
-#define BASE_SAFE_STRERROR_POSIX_H_
+#ifndef BASE_POSIX_SAFE_STRERROR_H_
+#define BASE_POSIX_SAFE_STRERROR_H_
#include <string>
#include "base/base_export.h"
+namespace base {
+
// BEFORE using anything from this file, first look at PLOG and friends in
// logging.h and use them instead if applicable.
//
@@ -35,4 +37,6 @@ BASE_EXPORT void safe_strerror_r(int err, char *buf, size_t len);
// allocate a string.
BASE_EXPORT std::string safe_strerror(int err);
-#endif // BASE_SAFE_STRERROR_POSIX_H_
+} // namespace base
+
+#endif // BASE_POSIX_SAFE_STRERROR_H_
« no previous file with comments | « base/memory/shared_memory_posix.cc ('k') | base/posix/safe_strerror.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698