OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/mac/foundation_util.h" | 5 #include "base/mac/foundation_util.h" |
6 | 6 |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/mac/bundle_locations.h" | 12 #include "base/mac/bundle_locations.h" |
13 #include "base/mac/mac_logging.h" | 13 #include "base/mac/mac_logging.h" |
14 #include "base/sys_string_conversions.h" | 14 #include "base/strings/sys_string_conversions.h" |
15 | 15 |
16 #if !defined(OS_IOS) | 16 #if !defined(OS_IOS) |
17 extern "C" { | 17 extern "C" { |
18 CFTypeID SecACLGetTypeID(); | 18 CFTypeID SecACLGetTypeID(); |
19 CFTypeID SecTrustedApplicationGetTypeID(); | 19 CFTypeID SecTrustedApplicationGetTypeID(); |
20 } // extern "C" | 20 } // extern "C" |
21 #endif | 21 #endif |
22 | 22 |
23 namespace base { | 23 namespace base { |
24 namespace mac { | 24 namespace mac { |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 CFDictionaryGetValue(user_info.get(), kCFErrorDescriptionKey)); | 392 CFDictionaryGetValue(user_info.get(), kCFErrorDescriptionKey)); |
393 } | 393 } |
394 o << "Code: " << CFErrorGetCode(err) | 394 o << "Code: " << CFErrorGetCode(err) |
395 << " Domain: " << CFErrorGetDomain(err) | 395 << " Domain: " << CFErrorGetDomain(err) |
396 << " Desc: " << desc.get(); | 396 << " Desc: " << desc.get(); |
397 if(errorDesc) { | 397 if(errorDesc) { |
398 o << "(" << errorDesc << ")"; | 398 o << "(" << errorDesc << ")"; |
399 } | 399 } |
400 return o; | 400 return o; |
401 } | 401 } |
OLD | NEW |