Chromium Code Reviews| Index: chrome/browser/renderer_host/web_cache_manager.cc |
| diff --git a/chrome/browser/renderer_host/web_cache_manager.cc b/chrome/browser/renderer_host/web_cache_manager.cc |
| index e4c7a58495909819f6d1dcec765f5b21991b1411..7559317d7b9bd9630c0625addf4dfe6be670ad16 100644 |
| --- a/chrome/browser/renderer_host/web_cache_manager.cc |
| +++ b/chrome/browser/renderer_host/web_cache_manager.cc |
| @@ -14,6 +14,7 @@ |
| #include "base/prefs/pref_registry_simple.h" |
| #include "base/prefs/pref_service.h" |
| #include "base/sys_info.h" |
| +#include "base/sys_utils.h" |
| #include "base/time/time.h" |
| #include "chrome/browser/browser_process.h" |
| #include "chrome/browser/chrome_notification_types.h" |
| @@ -23,10 +24,6 @@ |
| #include "content/public/browser/notification_service.h" |
| #include "content/public/browser/render_process_host.h" |
| -#if defined(OS_ANDROID) |
| -#include "base/android/sys_utils.h" |
| -#endif |
| - |
| using base::Time; |
| using base::TimeDelta; |
| using blink::WebCache; |
| @@ -326,11 +323,9 @@ void WebCacheManager::EnactStrategy(const AllocationStrategy& strategy) { |
| // We allow the dead objects to consume up to half of the cache capacity. |
| size_t max_dead_capacity = capacity / 2; |
| -#if defined(OS_ANDROID) |
| - if (base::android::SysUtils::IsLowEndDevice()) |
| + if (base::SysUtils::IsLowEndDevice()) |
|
brettw
2014/06/09 22:49:57
Can you put {} in this block since it's more than
c.shu
2014/06/10 17:36:26
Done.
|
| max_dead_capacity = std::min(static_cast<size_t>(512 * 1024), |
| max_dead_capacity); |
| -#endif |
| host->Send(new ChromeViewMsg_SetCacheCapacities(min_dead_capacity, |
| max_dead_capacity, |