Move OSStatus logging to base/apple
Bug: 1444927
Change-Id: I7e2df7c3e235711071050f1663127eb12439535c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4780399
Reviewed-by: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1184197}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
5baac5c3b5
commit
280c58a0e1
base
chrome
components
os_crypt
password_manager
core
browser
services
quarantine
device/fido/mac
browsing_data_deletion_unittest.mmcredential_store.mmget_assertion_operation.mmmake_credential_operation.mmutil.mm
media
audio
mac
base
cast
encoding
filters
gpu
net
cert
ssl
remoting/host/setup
sandbox/mac
third_party/webrtc_overrides/rtc_base
ui/events/keycodes
@ -1953,6 +1953,8 @@ component("base") {
|
||||
"apple/call_with_eh_frame_asm.S",
|
||||
"apple/dispatch_source_mach.cc",
|
||||
"apple/dispatch_source_mach.h",
|
||||
"apple/osstatus_logging.h",
|
||||
"apple/osstatus_logging.mm",
|
||||
"apple/owned_objc.h",
|
||||
"apple/owned_objc.mm",
|
||||
"apple/scoped_cffiledescriptorref.h",
|
||||
@ -1964,8 +1966,6 @@ component("base") {
|
||||
"files/file_util_apple.mm",
|
||||
"mac/foundation_util.h",
|
||||
"mac/foundation_util.mm",
|
||||
"mac/mac_logging.h",
|
||||
"mac/mac_logging.mm",
|
||||
"mac/mach_logging.cc",
|
||||
"mac/mach_logging.h",
|
||||
"mac/scoped_mach_port.cc",
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef BASE_MAC_MAC_LOGGING_H_
|
||||
#define BASE_MAC_MAC_LOGGING_H_
|
||||
#ifndef BASE_APPLE_OSSTATUS_LOGGING_H_
|
||||
#define BASE_APPLE_OSSTATUS_LOGGING_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
#include <libkern/OSTypes.h>
|
||||
#endif
|
||||
|
||||
// Use the OSSTATUS_LOG family to log messages related to errors in Mac OS X
|
||||
// Use the OSSTATUS_LOG family to log messages related to errors in macOS/iOS
|
||||
// system routines that report status via an OSStatus or OSErr value. It is
|
||||
// similar to the PLOG family which operates on errno, but because there is no
|
||||
// global (or thread-local) OSStatus or OSErr value, the specific error must
|
||||
@ -30,7 +30,7 @@
|
||||
|
||||
namespace logging {
|
||||
|
||||
// Returns a UTF8 description from an OS X Status error.
|
||||
// Returns a UTF8 description from an OSStatus/OSErr value.
|
||||
BASE_EXPORT std::string DescriptionFromOSStatus(OSStatus err);
|
||||
|
||||
class BASE_EXPORT OSStatusLogMessage : public logging::LogMessage {
|
||||
@ -58,44 +58,44 @@ class BASE_EXPORT OSStatusLogMessage : public logging::LogMessage {
|
||||
#endif
|
||||
|
||||
#define OSSTATUS_LOG_STREAM(severity, status) \
|
||||
COMPACT_GOOGLE_LOG_EX_ ## severity(OSStatusLogMessage, status).stream()
|
||||
#define OSSTATUS_VLOG_STREAM(verbose_level, status) \
|
||||
logging::OSStatusLogMessage(__FILE__, __LINE__, \
|
||||
-verbose_level, status).stream()
|
||||
COMPACT_GOOGLE_LOG_EX_##severity(OSStatusLogMessage, status).stream()
|
||||
#define OSSTATUS_VLOG_STREAM(verbose_level, status) \
|
||||
logging::OSStatusLogMessage(__FILE__, __LINE__, -verbose_level, status) \
|
||||
.stream()
|
||||
|
||||
#define OSSTATUS_LOG(severity, status) \
|
||||
LAZY_STREAM(OSSTATUS_LOG_STREAM(severity, status), LOG_IS_ON(severity))
|
||||
LAZY_STREAM(OSSTATUS_LOG_STREAM(severity, status), LOG_IS_ON(severity))
|
||||
#define OSSTATUS_LOG_IF(severity, condition, status) \
|
||||
LAZY_STREAM(OSSTATUS_LOG_STREAM(severity, status), \
|
||||
LOG_IS_ON(severity) && (condition))
|
||||
LAZY_STREAM(OSSTATUS_LOG_STREAM(severity, status), \
|
||||
LOG_IS_ON(severity) && (condition))
|
||||
|
||||
#define OSSTATUS_VLOG(verbose_level, status) \
|
||||
LAZY_STREAM(OSSTATUS_VLOG_STREAM(verbose_level, status), \
|
||||
VLOG_IS_ON(verbose_level))
|
||||
#define OSSTATUS_VLOG(verbose_level, status) \
|
||||
LAZY_STREAM(OSSTATUS_VLOG_STREAM(verbose_level, status), \
|
||||
VLOG_IS_ON(verbose_level))
|
||||
#define OSSTATUS_VLOG_IF(verbose_level, condition, status) \
|
||||
LAZY_STREAM(OSSTATUS_VLOG_STREAM(verbose_level, status), \
|
||||
VLOG_IS_ON(verbose_level) && (condition))
|
||||
LAZY_STREAM(OSSTATUS_VLOG_STREAM(verbose_level, status), \
|
||||
VLOG_IS_ON(verbose_level) && (condition))
|
||||
|
||||
#define OSSTATUS_CHECK(condition, status) \
|
||||
LAZY_STREAM(OSSTATUS_LOG_STREAM(FATAL, status), !(condition)) \
|
||||
<< "Check failed: " # condition << ". "
|
||||
#define OSSTATUS_CHECK(condition, status) \
|
||||
LAZY_STREAM(OSSTATUS_LOG_STREAM(FATAL, status), !(condition)) \
|
||||
<< "Check failed: " #condition << ". "
|
||||
|
||||
#define OSSTATUS_DLOG(severity, status) \
|
||||
LAZY_STREAM(OSSTATUS_LOG_STREAM(severity, status), DLOG_IS_ON(severity))
|
||||
LAZY_STREAM(OSSTATUS_LOG_STREAM(severity, status), DLOG_IS_ON(severity))
|
||||
#define OSSTATUS_DLOG_IF(severity, condition, status) \
|
||||
LAZY_STREAM(OSSTATUS_LOG_STREAM(severity, status), \
|
||||
DLOG_IS_ON(severity) && (condition))
|
||||
LAZY_STREAM(OSSTATUS_LOG_STREAM(severity, status), \
|
||||
DLOG_IS_ON(severity) && (condition))
|
||||
|
||||
#define OSSTATUS_DVLOG(verbose_level, status) \
|
||||
LAZY_STREAM(OSSTATUS_VLOG_STREAM(verbose_level, status), \
|
||||
MAC_DVLOG_IS_ON(verbose_level))
|
||||
#define OSSTATUS_DVLOG(verbose_level, status) \
|
||||
LAZY_STREAM(OSSTATUS_VLOG_STREAM(verbose_level, status), \
|
||||
MAC_DVLOG_IS_ON(verbose_level))
|
||||
#define OSSTATUS_DVLOG_IF(verbose_level, condition, status) \
|
||||
LAZY_STREAM(OSSTATUS_VLOG_STREAM(verbose_level, status), \
|
||||
MAC_DVLOG_IS_ON(verbose_level) && (condition))
|
||||
LAZY_STREAM(OSSTATUS_VLOG_STREAM(verbose_level, status), \
|
||||
MAC_DVLOG_IS_ON(verbose_level) && (condition))
|
||||
|
||||
#define OSSTATUS_DCHECK(condition, status) \
|
||||
LAZY_STREAM(OSSTATUS_LOG_STREAM(FATAL, status), \
|
||||
DCHECK_IS_ON() && !(condition)) \
|
||||
<< "Check failed: " #condition << ". "
|
||||
|
||||
#endif // BASE_MAC_MAC_LOGGING_H_
|
||||
#endif // BASE_APPLE_OSSTATUS_LOGGING_H_
|
@ -2,23 +2,18 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#include <iomanip>
|
||||
|
||||
#include "build/build_config.h"
|
||||
|
||||
#if !BUILDFLAG(IS_IOS)
|
||||
#include <CoreServices/CoreServices.h>
|
||||
#endif
|
||||
|
||||
namespace logging {
|
||||
|
||||
std::string DescriptionFromOSStatus(OSStatus err) {
|
||||
NSError* error =
|
||||
[NSError errorWithDomain:NSOSStatusErrorDomain code:err userInfo:nil];
|
||||
NSError* error = [NSError errorWithDomain:NSOSStatusErrorDomain
|
||||
code:err
|
||||
userInfo:nil];
|
||||
return error.description.UTF8String;
|
||||
}
|
||||
|
||||
@ -26,22 +21,11 @@ OSStatusLogMessage::OSStatusLogMessage(const char* file_path,
|
||||
int line,
|
||||
LogSeverity severity,
|
||||
OSStatus status)
|
||||
: LogMessage(file_path, line, severity),
|
||||
status_(status) {
|
||||
}
|
||||
: LogMessage(file_path, line, severity), status_(status) {}
|
||||
|
||||
OSStatusLogMessage::~OSStatusLogMessage() {
|
||||
#if BUILDFLAG(IS_IOS)
|
||||
// TODO(crbug.com/546375): Consider using NSError with NSOSStatusErrorDomain
|
||||
// to try to get a description of the failure.
|
||||
stream() << ": " << status_;
|
||||
#else
|
||||
stream() << ": "
|
||||
<< DescriptionFromOSStatus(status_)
|
||||
<< " ("
|
||||
<< status_
|
||||
stream() << ": " << DescriptionFromOSStatus(status_) << " (" << status_
|
||||
<< ")";
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace logging
|
@ -11,9 +11,9 @@
|
||||
#include <string>
|
||||
|
||||
#include "base/apple/bundle_locations.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/scoped_authorizationref.h"
|
||||
#include "base/posix/eintr_wrapper.h"
|
||||
#include "base/strings/string_number_conversions.h"
|
||||
|
@ -11,10 +11,10 @@
|
||||
#include <vector>
|
||||
|
||||
#include "base/apple/bundle_locations.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/containers/adapters.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/notreached.h"
|
||||
#include "base/numerics/checked_math.h"
|
||||
#include "base/numerics/safe_conversions.h"
|
||||
|
@ -17,10 +17,10 @@
|
||||
|
||||
#include "base/apple/bridging.h"
|
||||
#include "base/apple/bundle_locations.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/scoped_aedesc.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/mac/scoped_ioobject.h"
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
#include "base/allocator/early_zone_registration_apple.h"
|
||||
#include "base/apple/bundle_locations.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/at_exit.h"
|
||||
#include "base/base_switches.h"
|
||||
#include "base/check.h"
|
||||
@ -21,7 +22,6 @@
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/files/file_util.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/message_loop/message_pump_type.h"
|
||||
#include "base/run_loop.h"
|
||||
#include "base/strings/sys_string_conversions.h"
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#include "apps/app_lifetime_monitor_factory.h"
|
||||
#include "base/apple/bundle_locations.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/barrier_closure.h"
|
||||
#include "base/debug/dump_without_crashing.h"
|
||||
#include "base/feature_list.h"
|
||||
@ -22,7 +23,6 @@
|
||||
#include "base/hash/sha1.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/memory/raw_ptr.h"
|
||||
#include "base/no_destructor.h"
|
||||
#include "base/strings/stringprintf.h"
|
||||
|
@ -21,13 +21,13 @@
|
||||
|
||||
#include "base/apple/bridging.h"
|
||||
#include "base/apple/bundle_locations.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/auto_reset.h"
|
||||
#include "base/command_line.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/authorization_util.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/mac_util.h"
|
||||
#include "base/mac/mach_logging.h"
|
||||
#include "base/mac/scoped_authorizationref.h"
|
||||
|
@ -13,13 +13,13 @@
|
||||
|
||||
#include "base/apple/bridging.h"
|
||||
#include "base/apple/bundle_locations.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/file_version_info.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/location.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/authorization_util.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/memory/ref_counted.h"
|
||||
#include "base/no_destructor.h"
|
||||
#include "base/strings/string_number_conversions.h"
|
||||
|
@ -19,12 +19,12 @@
|
||||
#include <vector>
|
||||
|
||||
#include "base/apple/bundle_locations.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/files/file_util.h"
|
||||
#include "base/files/scoped_file.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/launch_application.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/path_service.h"
|
||||
#include "base/posix/eintr_wrapper.h"
|
||||
#include "base/process/launch.h"
|
||||
|
@ -9,9 +9,9 @@
|
||||
#include <Security/Authorization.h>
|
||||
|
||||
#include "base/apple/bundle_locations.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/mac/authorization_util.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/scoped_authorizationref.h"
|
||||
#include "base/strings/sys_string_conversions.h"
|
||||
#include "chrome/grit/chromium_strings.h"
|
||||
|
@ -6,13 +6,13 @@
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/command_line.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/files/file_util.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/strings/sys_string_conversions.h"
|
||||
#include "chrome/browser/platform_util_internal.h"
|
||||
#include "content/public/browser/browser_task_traits.h"
|
||||
|
@ -6,11 +6,11 @@
|
||||
|
||||
#include "chrome/browser/ui/webui/settings/settings_utils.h"
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/functional/callback_helpers.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/launch_application.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/mac_util.h"
|
||||
#include "base/strings/sys_string_conversions.h"
|
||||
#include "chrome/common/pref_names.h"
|
||||
|
@ -6,8 +6,8 @@
|
||||
|
||||
#import <Security/Security.h>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/base64.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/no_destructor.h"
|
||||
#include "base/rand_util.h"
|
||||
|
@ -10,10 +10,10 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/base64.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/strings/sys_string_conversions.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
|
@ -7,10 +7,10 @@
|
||||
#import <ApplicationServices/ApplicationServices.h>
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/mac_util.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/strings/sys_string_conversions.h"
|
||||
|
@ -8,11 +8,11 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#include "base/apple/bridging.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/files/file_util.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/mac_util.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/strings/sys_string_conversions.h"
|
||||
|
@ -8,8 +8,8 @@
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <Security/Security.h>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/strings/sys_string_conversions.h"
|
||||
#include "base/test/task_environment.h"
|
||||
|
@ -10,12 +10,12 @@
|
||||
#import <Security/Security.h>
|
||||
|
||||
#include "base/apple/bridging.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/containers/contains.h"
|
||||
#include "base/containers/cxx20_erase.h"
|
||||
#include "base/feature_list.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/numerics/safe_conversions.h"
|
||||
#include "base/strings/sys_string_conversions.h"
|
||||
|
@ -9,9 +9,9 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/strings/string_number_conversions.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
|
@ -8,10 +8,10 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/containers/contains.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/strings/sys_string_conversions.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
|
@ -10,9 +10,9 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/numerics/safe_conversions.h"
|
||||
#include "base/strings/string_number_conversions.h"
|
||||
|
@ -12,10 +12,10 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/functional/callback_helpers.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/metrics/histogram_functions.h"
|
||||
#include "base/metrics/histogram_macros.h"
|
||||
#include "base/strings/stringprintf.h"
|
||||
|
@ -6,10 +6,10 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/memory/raw_ptr.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "base/task/single_thread_task_runner.h"
|
||||
|
@ -8,9 +8,9 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/metrics/histogram_macros.h"
|
||||
#include "base/metrics/sparse_histogram.h"
|
||||
#include "base/time/time.h"
|
||||
|
@ -9,10 +9,10 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/mac_util.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/mac/scoped_mach_port.h"
|
||||
|
@ -9,10 +9,10 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/command_line.h"
|
||||
#include "base/containers/flat_set.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/mac_util.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/memory/free_deleter.h"
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/metrics/histogram_functions.h"
|
||||
#include "base/strings/string_util.h"
|
||||
#include "base/strings/sys_string_conversions.h"
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
#include "media/audio/mac/scoped_audio_unit.h"
|
||||
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
|
||||
namespace media {
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "url/gurl.h"
|
||||
|
||||
#if BUILDFLAG(IS_APPLE)
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#endif // BUILDFLAG(IS_APPLE)
|
||||
|
||||
namespace media {
|
||||
|
@ -10,12 +10,12 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/big_endian.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/functional/callback_helpers.h"
|
||||
#include "base/location.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/memory/ptr_util.h"
|
||||
#include "base/power_monitor/power_monitor.h"
|
||||
#include "base/strings/strcat.h"
|
||||
|
@ -4,10 +4,10 @@
|
||||
|
||||
#include "media/filters/mac/audio_toolbox_audio_decoder.h"
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/auto_reset.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/memory/raw_ptr.h"
|
||||
#include "base/ranges/algorithm.h"
|
||||
#include "base/sys_byteorder.h"
|
||||
|
@ -4,9 +4,9 @@
|
||||
|
||||
#include "media/filters/mac/audio_toolbox_audio_encoder.h"
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/memory/raw_ptr.h"
|
||||
#include "base/task/single_thread_task_runner.h"
|
||||
#include "media/base/audio_buffer.h"
|
||||
|
@ -6,9 +6,9 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "media/base/media_log.h"
|
||||
#include "media/gpu/mac/video_toolbox_decode_metadata.h"
|
||||
#include "media/gpu/mac/video_toolbox_decompression_session.h"
|
||||
|
@ -4,8 +4,8 @@
|
||||
|
||||
#include "media/gpu/mac/video_toolbox_decompression_session.h"
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "media/base/media_log.h"
|
||||
|
||||
#define OSSTATUS_MEDIA_DLOG_ERROR(status, msg) \
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/sys_byteorder.h"
|
||||
#include "media/base/media_log.h"
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/notreached.h"
|
||||
#include "media/base/media_log.h"
|
||||
#include "media/gpu/mac/vt_config_util.h"
|
||||
|
@ -4,10 +4,10 @@
|
||||
|
||||
#include "media/gpu/mac/vp9_super_frame_bitstream_filter.h"
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/bits.h"
|
||||
#include "base/check.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "media/filters/vp9_raw_bits_reader.h"
|
||||
|
||||
namespace {
|
||||
|
@ -12,12 +12,12 @@
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/atomic_sequence_num.h"
|
||||
#include "base/containers/contains.h"
|
||||
#include "base/containers/span.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/mac_util.h"
|
||||
#include "base/memory/ptr_util.h"
|
||||
#include "base/memory/scoped_policy.h"
|
||||
|
@ -6,10 +6,10 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/containers/contains.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/mac_util.h"
|
||||
#include "base/memory/shared_memory_mapping.h"
|
||||
#include "base/memory/unsafe_shared_memory_region.h"
|
||||
|
@ -6,10 +6,10 @@
|
||||
|
||||
#include <Security/Security.h>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/check.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/location.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/notreached.h"
|
||||
#include "base/process/process_handle.h"
|
||||
#include "net/base/network_notification_thread_mac.h"
|
||||
|
@ -6,9 +6,9 @@
|
||||
|
||||
#include <CommonCrypto/CommonDigest.h>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/notreached.h"
|
||||
#include "crypto/sha2.h"
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
#include <Security/Security.h>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/atomicops.h"
|
||||
#include "base/callback_list.h"
|
||||
#include "base/containers/contains.h"
|
||||
@ -13,7 +14,6 @@
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/metrics/histogram_functions.h"
|
||||
#include "base/no_destructor.h"
|
||||
#include "base/numerics/safe_conversions.h"
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
#include <Security/SecIdentity.h>
|
||||
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "net/ssl/ssl_platform_key_mac.h"
|
||||
#include "net/ssl/ssl_private_key.h"
|
||||
|
||||
|
@ -16,11 +16,11 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/functional/callback.h"
|
||||
#include "base/functional/callback_helpers.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/ranges/algorithm.h"
|
||||
#include "base/strings/sys_string_conversions.h"
|
||||
|
@ -14,10 +14,10 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/containers/span.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/mac_util.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/memory/scoped_policy.h"
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <utility>
|
||||
|
||||
#include "base/apple/bridging.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/command_line.h"
|
||||
#include "base/files/file_util.h"
|
||||
#include "base/files/scoped_file.h"
|
||||
@ -17,7 +18,6 @@
|
||||
#include "base/mac/authorization_util.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/launchd.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/scoped_authorizationref.h"
|
||||
#include "base/mac/scoped_launch_data.h"
|
||||
#include "base/memory/ptr_util.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include <Carbon/Carbon.h>
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
|
||||
extern "C" {
|
||||
OSStatus SetApplicationIsDaemon(Boolean isDaemon);
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "third_party/webrtc_overrides/rtc_base/logging.h"
|
||||
|
||||
#if defined(WEBRTC_MAC)
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#endif
|
||||
|
||||
// Disable logging when fuzzing, for performance reasons.
|
||||
|
@ -8,9 +8,9 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "base/apple/osstatus_logging.h"
|
||||
#include "base/check_op.h"
|
||||
#include "base/mac/foundation_util.h"
|
||||
#include "base/mac/mac_logging.h"
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
#include "base/notreached.h"
|
||||
#include "base/strings/string_util.h"
|
||||
|
Reference in New Issue
Block a user