Implement GetMaxFds on Windows platform

Desktop / Chromium - Chris Mumford [chromium.org] - 11 September 2017 20:20 EDT

Maximum number of open files on Windows is only limited by available RAM. Making GetMaxFds return max size_t.

Having this simplifies call sites allowing for platform agnostic code.

Bug: None Change-Id: I78f01a9c0d2e49952148ee9febfdba49d8eaad9c Reviewed-on: https://chromium-review.googlesource.com/656108

a7fd9f0 Implement GetMaxFds on Windows platform.
base/process/process_metrics.h | 2 +-
base/process/process_metrics_win.cc | 5 +++++
net/disk_cache/disk_cache_perftest.cc | 10 +---------
third_party/leveldatabase/env_chromium.cc | 5 +----
4 files changed, 8 insertions(+), 14 deletions(-)

Upstream: git.chromium.org


  • Share