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

Unified Diff: net/disk_cache/mem_backend_impl.cc

Issue 4003: Fix AmountOfFreeDiskSpace to be able to differentiate an error... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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/sys_info_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/mem_backend_impl.cc
===================================================================
--- net/disk_cache/mem_backend_impl.cc (revision 2424)
+++ net/disk_cache/mem_backend_impl.cc (working copy)
@@ -43,7 +43,7 @@
int64 total_memory = base::SysInfo::AmountOfPhysicalMemory();
- if (total_memory < 0) {
+ if (total_memory <= 0) {
max_size_ = kDefaultCacheSize;
return true;
}
« no previous file with comments | « base/sys_info_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698