OLD | NEW |
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 "base/process/process.h" | 5 #include "base/process/process.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <sys/resource.h> | 8 #include <sys/resource.h> |
9 | 9 |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "base/threading/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
| 18 #include "build/build_config.h" |
18 | 19 |
19 namespace base { | 20 namespace base { |
20 | 21 |
21 namespace { | 22 namespace { |
22 | 23 |
23 const int kForegroundPriority = 0; | 24 const int kForegroundPriority = 0; |
24 | 25 |
25 #if defined(OS_CHROMEOS) | 26 #if defined(OS_CHROMEOS) |
26 // We are more aggressive in our lowering of background process priority | 27 // We are more aggressive in our lowering of background process priority |
27 // for chromeos as we have much more control over other processes running | 28 // for chromeos as we have much more control over other processes running |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 return kNullProcessId; | 193 return kNullProcessId; |
193 } | 194 } |
194 return value; | 195 return value; |
195 } | 196 } |
196 } | 197 } |
197 return kNullProcessId; | 198 return kNullProcessId; |
198 } | 199 } |
199 #endif // defined(OS_CHROMEOS) | 200 #endif // defined(OS_CHROMEOS) |
200 | 201 |
201 } // namespace base | 202 } // namespace base |
OLD | NEW |