| 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
|
|
|