| 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 "content/common/sandbox_mac.h" | 5 #include "content/common/sandbox_mac.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include <CoreFoundation/CFTimeZone.h> | 9 #include <CoreFoundation/CFTimeZone.h> |
| 10 extern "C" { | 10 extern "C" { |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 270 |
| 271 // Load in the color profiles we'll need (as a side effect). | 271 // Load in the color profiles we'll need (as a side effect). |
| 272 (void) base::mac::GetSRGBColorSpace(); | 272 (void) base::mac::GetSRGBColorSpace(); |
| 273 (void) base::mac::GetSystemColorSpace(); | 273 (void) base::mac::GetSystemColorSpace(); |
| 274 | 274 |
| 275 // CGColorSpaceCreateSystemDefaultCMYK - 10.6 | 275 // CGColorSpaceCreateSystemDefaultCMYK - 10.6 |
| 276 base::ScopedCFTypeRef<CGColorSpaceRef> cmyk_colorspace( | 276 base::ScopedCFTypeRef<CGColorSpaceRef> cmyk_colorspace( |
| 277 CGColorSpaceCreateWithName(kCGColorSpaceGenericCMYK)); | 277 CGColorSpaceCreateWithName(kCGColorSpaceGenericCMYK)); |
| 278 } | 278 } |
| 279 | 279 |
| 280 { // -[NSColor colorUsingColorSpaceName] - 10.5.6 |
| 281 // Used in ppapi processes only. http://crbug.com/348304 |
| 282 NSColor* color = [NSColor controlTextColor]; |
| 283 [color colorUsingColorSpaceName:NSCalibratedRGBColorSpace]; |
| 284 } |
| 285 |
| 280 { // localtime() - 10.5.6 | 286 { // localtime() - 10.5.6 |
| 281 time_t tv = {0}; | 287 time_t tv = {0}; |
| 282 localtime(&tv); | 288 localtime(&tv); |
| 283 } | 289 } |
| 284 | 290 |
| 285 { // Gestalt() tries to read /System/Library/CoreServices/SystemVersion.plist | 291 { // Gestalt() tries to read /System/Library/CoreServices/SystemVersion.plist |
| 286 // on 10.5.6 | 292 // on 10.5.6 |
| 287 int32 tmp; | 293 int32 tmp; |
| 288 base::SysInfo::OperatingSystemVersionNumbers(&tmp, &tmp, &tmp); | 294 base::SysInfo::OperatingSystemVersionNumbers(&tmp, &tmp, &tmp); |
| 289 } | 295 } |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) { | 619 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) { |
| 614 DPLOG(FATAL) << "GetCanonicalSandboxPath() failed for: " | 620 DPLOG(FATAL) << "GetCanonicalSandboxPath() failed for: " |
| 615 << path.value(); | 621 << path.value(); |
| 616 return path; | 622 return path; |
| 617 } | 623 } |
| 618 | 624 |
| 619 return base::FilePath(canonical_path); | 625 return base::FilePath(canonical_path); |
| 620 } | 626 } |
| 621 | 627 |
| 622 } // namespace content | 628 } // namespace content |
| OLD | NEW |