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

Unified Diff: base/mac/mach_logging.cc

Issue 278923002: Use the new ScopedMachVM class and the MACH_LOG family of logging macros (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase onto r269793 Created 6 years, 7 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/mac/mach_logging.h ('k') | base/mac/scoped_mach_port.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/mach_logging.cc
diff --git a/base/mac/mach_logging.cc b/base/mac/mach_logging.cc
index 0ab6416fbe0851d25a36e3f5dae4fc96bf4e474c..c5ff85e662f8303a9f5cdf06fe5349f5fb471c98 100644
--- a/base/mac/mach_logging.cc
+++ b/base/mac/mach_logging.cc
@@ -4,13 +4,15 @@
#include "base/mac/mach_logging.h"
-#include <servers/bootstrap.h>
-
#include <iomanip>
#include <string>
#include "base/strings/stringprintf.h"
+#if !defined(OS_IOS)
+#include <servers/bootstrap.h>
+#endif // !OS_IOS
+
namespace {
std::string FormatMachErrorNumber(mach_error_t mach_err) {
@@ -41,6 +43,8 @@ MachLogMessage::~MachLogMessage() {
<< FormatMachErrorNumber(mach_err_);
}
+#if !defined(OS_IOS)
+
BootstrapLogMessage::BootstrapLogMessage(const char* file_path,
int line,
LogSeverity severity,
@@ -78,4 +82,6 @@ BootstrapLogMessage::~BootstrapLogMessage() {
}
}
+#endif // !OS_IOS
+
} // namespace logging
« no previous file with comments | « base/mac/mach_logging.h ('k') | base/mac/scoped_mach_port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698