| Index: content/browser/browser_main_loop.cc
|
| diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
|
| index 86ca49dd2e1bc503cf6faaab06b07b87be56ce61..95eea523e288a405a1ba08734f85ff2de0115abf 100644
|
| --- a/content/browser/browser_main_loop.cc
|
| +++ b/content/browser/browser_main_loop.cc
|
| @@ -511,17 +511,16 @@ void BrowserMainLoop::EarlyInitialization() {
|
| if (parts_)
|
| parts_->PreEarlyInitialization();
|
|
|
| -#if defined(OS_MACOSX)
|
| - // We use quite a few file descriptors for our IPC, and the default limit on
|
| - // the Mac is low (256), so bump it up.
|
| - base::SetFdLimit(1024);
|
| -#elif defined(OS_LINUX)
|
| +#if defined(OS_MACOSX) || defined(OS_LINUX)
|
| + // We use quite a few file descriptors for our IPC as well as disk the disk
|
| + // cache,and the default limit on the Mac is low (256), so bump it up.
|
| +
|
| // Same for Linux. The default various per distro, but it is 1024 on Fedora.
|
| // Low soft limits combined with liberal use of file descriptors means power
|
| // users can easily hit this limit with many open tabs. Bump up the limit to
|
| // an arbitrarily high number. See https://crbug.com/539567
|
| base::SetFdLimit(8192);
|
| -#endif // default(OS_MACOSX)
|
| +#endif // defined(OS_MACOSX) || defined(OS_LINUX)
|
|
|
| #if defined(OS_WIN)
|
| net::EnsureWinsockInit();
|
|
|