1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/mac/mac_logging.h"
10 #include <CoreServices/CoreServices.h>
15 OSStatusLogMessage::OSStatusLogMessage(const char* file_path
,
19 : LogMessage(file_path
, line
, severity
),
23 OSStatusLogMessage::~OSStatusLogMessage() {
25 // TODO(ios): Consider using NSError with NSOSStatusErrorDomain to try to
26 // get a description of the failure.
27 stream() << ": " << status_
;
30 << GetMacOSStatusErrorString(status_
)
37 } // namespace logging