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

Side by Side Diff: tools/gn/exec_process.cc

Issue 1421293008: include what you use: errno.h in exec_process.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/files/file_util.h" 6 #include "base/files/file_util.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/process/kill.h" 8 #include "base/process/kill.h"
9 #include "base/process/launch.h" 9 #include "base/process/launch.h"
10 #include "base/process/process.h" 10 #include "base/process/process.h"
11 11
12 #if defined(OS_WIN) 12 #if defined(OS_WIN)
13 #include <windows.h> 13 #include <windows.h>
14 14
15 #include "base/win/scoped_handle.h" 15 #include "base/win/scoped_handle.h"
16 #include "base/win/scoped_process_information.h" 16 #include "base/win/scoped_process_information.h"
17 #else
18 #include <errno.h>
tfarina 2015/11/07 16:10:56 Maybe do this in the POSIX case below?
Mostyn Bramley-Moore 2015/11/07 19:52:39 In this file errno is only used inside the else bl
tfarina 2015/11/08 13:59:33 Then should we move the includes below in this els
Mostyn Bramley-Moore 2015/11/09 16:40:07 I will defer to Brett on this.
brettw 2015/11/10 21:48:19 Personally I'd merge them all into the else.
Mostyn Bramley-Moore 2015/11/10 22:24:22 Done.
17 #endif 19 #endif
18 20
19 #if defined(OS_POSIX) 21 #if defined(OS_POSIX)
20 #include <fcntl.h> 22 #include <fcntl.h>
21 #include <unistd.h> 23 #include <unistd.h>
22 24
23 #include "base/posix/eintr_wrapper.h" 25 #include "base/posix/eintr_wrapper.h"
24 #include "base/posix/file_descriptor_shuffle.h" 26 #include "base/posix/file_descriptor_shuffle.h"
25 #endif 27 #endif
26 28
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 return process.WaitForExit(exit_code); 247 return process.WaitForExit(exit_code);
246 } 248 }
247 } 249 }
248 250
249 return false; 251 return false;
250 } 252 }
251 #endif 253 #endif
252 254
253 } // namespace internal 255 } // namespace internal
254 256
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698