Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1159)

Side by Side Diff: content/common/sandbox_mac.mm

Issue 177243021: [Mac] Remove NSApplication from the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Defer FakeActiveWindow creation Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/content.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 NSColor* color = [NSColor controlTextColor];
282 [color colorUsingColorSpaceName:NSCalibratedRGBColorSpace];
283 }
284
285 { // localtime() - 10.5.6 280 { // localtime() - 10.5.6
286 time_t tv = {0}; 281 time_t tv = {0};
287 localtime(&tv); 282 localtime(&tv);
288 } 283 }
289 284
290 { // Gestalt() tries to read /System/Library/CoreServices/SystemVersion.plist 285 { // Gestalt() tries to read /System/Library/CoreServices/SystemVersion.plist
291 // on 10.5.6 286 // on 10.5.6
292 int32 tmp; 287 int32 tmp;
293 base::SysInfo::OperatingSystemVersionNumbers(&tmp, &tmp, &tmp); 288 base::SysInfo::OperatingSystemVersionNumbers(&tmp, &tmp, &tmp);
294 } 289 }
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) { 613 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) {
619 DPLOG(FATAL) << "GetCanonicalSandboxPath() failed for: " 614 DPLOG(FATAL) << "GetCanonicalSandboxPath() failed for: "
620 << path.value(); 615 << path.value();
621 return path; 616 return path;
622 } 617 }
623 618
624 return base::FilePath(canonical_path); 619 return base::FilePath(canonical_path);
625 } 620 }
626 621
627 } // namespace content 622 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698