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

Unified Diff: chrome/browser/renderer_host/render_process_host.cc

Issue 16814: POSIX: Get render_process_host to build. (Closed)
Patch Set: Created 11 years, 11 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
Index: chrome/browser/renderer_host/render_process_host.cc
diff --git a/chrome/browser/renderer_host/render_process_host.cc b/chrome/browser/renderer_host/render_process_host.cc
index 18323f4dd9df895915d88b1ecee207b3399efefe..3ec83288200eb34648c53af8ad1286d088eab995 100644
--- a/chrome/browser/renderer_host/render_process_host.cc
+++ b/chrome/browser/renderer_host/render_process_host.cc
@@ -12,10 +12,11 @@
namespace {
unsigned int GetMaxRendererProcessCount() {
- // Defines the maximum number of renderer processes according to the amount
- // of installed memory as reported by the OS. The table values are calculated
- // by assuming that you want the renderers to use half of the installed ram
- // and assuming that each tab uses ~25MB.
+ // Defines the maximum number of renderer processes according to the
+ // amount of installed memory as reported by the OS. The table
+ // values are calculated by assuming that you want the renderers to
+ // use half of the installed ram and assuming that each tab uses
+ // ~25MB.
static const int kMaxRenderersByRamTier[] = {
4, // less than 256MB
8, // 256MB
@@ -25,7 +26,7 @@ unsigned int GetMaxRendererProcessCount() {
static unsigned int max_count = 0;
if (!max_count) {
- int memory_tier = base::SysInfo::AmountOfPhysicalMemoryMB() / 256;
+ size_t memory_tier = base::SysInfo::AmountOfPhysicalMemoryMB() / 256;
if (memory_tier >= arraysize(kMaxRenderersByRamTier))
max_count = chrome::kMaxRendererProcessCount;
else
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | chrome/browser/resource_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698