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

Unified Diff: base/process_util_ios.mm

Issue 19064002: Split ProcessHandle and its related routines into base/process/process_handle.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process_util_freebsd.cc ('k') | base/process_util_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_ios.mm
diff --git a/base/process_util_ios.mm b/base/process_util_ios.mm
index 1e2b4892e841d281c1ec95c75f3dfb1477d14abb..3064c9567f8db155974c6d611639911621cf36bd 100644
--- a/base/process_util_ios.mm
+++ b/base/process_util_ios.mm
@@ -15,33 +15,8 @@
namespace base {
-ProcessId GetCurrentProcId() {
- return getpid();
-}
-
-ProcessHandle GetCurrentProcessHandle() {
- return GetCurrentProcId();
-}
-
void RaiseProcessToHighPriority() {
// Impossible on iOS. Do nothing.
}
-size_t GetMaxFds() {
- static const rlim_t kSystemDefaultMaxFds = 256;
- rlim_t max_fds;
- struct rlimit nofile;
- if (getrlimit(RLIMIT_NOFILE, &nofile)) {
- // Error case: Take a best guess.
- max_fds = kSystemDefaultMaxFds;
- } else {
- max_fds = nofile.rlim_cur;
- }
-
- if (max_fds > INT_MAX)
- max_fds = INT_MAX;
-
- return static_cast<size_t>(max_fds);
-}
-
} // namespace base
« no previous file with comments | « base/process_util_freebsd.cc ('k') | base/process_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698