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

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

Issue 8771028: [Mac] Remove content/ CrApplication. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to trunk for commit-queue. Created 9 years 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 | « content/common/chrome_application_mac.mm ('k') | content/content_common.gypi » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 extern "C" { 9 extern "C" {
10 #include <sandbox.h> 10 #include <sandbox.h>
11 } 11 }
12 #include <signal.h> 12 #include <signal.h>
13 #include <sys/param.h> 13 #include <sys/param.h>
14 14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
18 #include "base/file_util.h" 18 #include "base/file_util.h"
19 #include "base/mac/mac_util.h" 19 #include "base/mac/mac_util.h"
20 #include "base/rand_util_c.h" 20 #include "base/rand_util_c.h"
21 #include "base/mac/scoped_cftyperef.h" 21 #include "base/mac/scoped_cftyperef.h"
22 #include "base/mac/scoped_nsautorelease_pool.h" 22 #include "base/mac/scoped_nsautorelease_pool.h"
23 #include "base/string16.h" 23 #include "base/string16.h"
24 #include "base/string_piece.h" 24 #include "base/string_piece.h"
25 #include "base/string_util.h" 25 #include "base/string_util.h"
26 #include "base/stringprintf.h" 26 #include "base/stringprintf.h"
27 #include "base/sys_info.h" 27 #include "base/sys_info.h"
28 #include "base/sys_string_conversions.h" 28 #include "base/sys_string_conversions.h"
29 #include "base/utf_string_conversions.h" 29 #include "base/utf_string_conversions.h"
30 #include "content/common/chrome_application_mac.h"
31 #include "content/public/common/content_client.h" 30 #include "content/public/common/content_client.h"
32 #include "content/public/common/content_switches.h" 31 #include "content/public/common/content_switches.h"
33 #include "grit/content_resources.h" 32 #include "grit/content_resources.h"
34 #include "unicode/uchar.h" 33 #include "unicode/uchar.h"
35 #include "ui/gfx/gl/gl_surface.h" 34 #include "ui/gfx/gl/gl_surface.h"
36 35
37 namespace { 36 namespace {
38 37
39 struct SandboxTypeToResourceIDMapping { 38 struct SandboxTypeToResourceIDMapping {
40 content::SandboxType sandbox_type; 39 content::SandboxType sandbox_type;
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) { 574 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) {
576 DPLOG(FATAL) << "GetCanonicalSandboxPath() failed for: " 575 DPLOG(FATAL) << "GetCanonicalSandboxPath() failed for: "
577 << path->value(); 576 << path->value();
578 return; 577 return;
579 } 578 }
580 579
581 *path = FilePath(canonical_path); 580 *path = FilePath(canonical_path);
582 } 581 }
583 582
584 } // namespace sandbox 583 } // namespace sandbox
OLDNEW
« no previous file with comments | « content/common/chrome_application_mac.mm ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698