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

Side by Side Diff: content/public/common/sandbox_init.cc

Issue 10451068: Fixing gcc 4.7 building problems. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Wrap unisdt.h using OS_POSIX macro Created 8 years, 6 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
« no previous file with comments | « chrome/browser/policy/policy_path_parser_linux.cc ('k') | crypto/ec_private_key_nss.cc » ('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/public/common/sandbox_init.h" 5 #include "content/public/common/sandbox_init.h"
6 6
7 #if defined(OS_ANDROID) 7 #if defined(OS_POSIX)
8 #include <unistd.h> 8 #include <unistd.h>
9 #endif 9 #endif
10 10
11 namespace content { 11 namespace content {
12 12
13 IPC::PlatformFileForTransit BrokerGetFileHandleForProcess( 13 IPC::PlatformFileForTransit BrokerGetFileHandleForProcess(
14 base::PlatformFile handle, 14 base::PlatformFile handle,
15 base::ProcessId target_process_id, 15 base::ProcessId target_process_id,
16 bool should_close_source) { 16 bool should_close_source) {
17 IPC::PlatformFileForTransit out_handle; 17 IPC::PlatformFileForTransit out_handle;
(...skipping 17 matching lines...) Expand all
35 int fd = should_close_source ? handle : ::dup(handle); 35 int fd = should_close_source ? handle : ::dup(handle);
36 out_handle = base::FileDescriptor(fd, true); 36 out_handle = base::FileDescriptor(fd, true);
37 #else 37 #else
38 #error Not implemented. 38 #error Not implemented.
39 #endif 39 #endif
40 return out_handle; 40 return out_handle;
41 } 41 }
42 42
43 } // namespace content 43 } // namespace content
44 44
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_path_parser_linux.cc ('k') | crypto/ec_private_key_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698