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

Unified Diff: base/mac/mac_logging.cc

Issue 10690133: Get mac_logging and foundation_util working on iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address review comments Created 8 years, 5 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/mac_logging.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/mac_logging.cc
diff --git a/base/mac/mac_logging.cc b/base/mac/mac_logging.cc
index 353f092150a94dd0d097f332f051fdfae5f60cb0..d58220fe8977a5bd03f5ec451d23affdbe089a1d 100644
--- a/base/mac/mac_logging.cc
+++ b/base/mac/mac_logging.cc
@@ -4,10 +4,12 @@
#include "base/mac/mac_logging.h"
-#include <CoreServices/CoreServices.h>
-
#include <iomanip>
+#if !defined(OS_IOS)
+#include <CoreServices/CoreServices.h>
+#endif
+
namespace logging {
OSStatusLogMessage::OSStatusLogMessage(const char* file_path,
@@ -19,11 +21,17 @@ OSStatusLogMessage::OSStatusLogMessage(const char* file_path,
}
OSStatusLogMessage::~OSStatusLogMessage() {
+#if defined(OS_IOS)
+ // TODO(ios): Consider using NSError with NSOSStatusErrorDomain to try to
+ // get a description of the failure.
+ stream() << ": " << status_;
+#else
stream() << ": "
<< GetMacOSStatusErrorString(status_)
<< " ("
<< status_
<< ")";
+#endif
}
} // namespace logging
« no previous file with comments | « base/mac/mac_logging.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698