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

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

Issue 9233018: Convert use of int ms to TimeDelta in files owned by brettw. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase onto master. Created 8 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/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 02bf51037ff464e3016f82cb1f494ecb87f3762e..f8b971a7aec87e43242773cff704fa4a8cd60a72 100644
--- a/chrome/browser/renderer_host/web_cache_manager.cc
+++ b/chrome/browser/renderer_host/web_cache_manager.cc
@@ -26,7 +26,7 @@ using base::Time;
using base::TimeDelta;
using WebKit::WebCache;
-static const unsigned int kReviseAllocationDelayMS = 200 /* milliseconds */;
+static const int kReviseAllocationDelayMS = 200;
// The default size limit of the in-memory cache is 8 MB
static const int kDefaultMemoryCacheSize = 8 * 1024 * 1024;
@@ -421,7 +421,7 @@ void WebCacheManager::ReviseAllocationStrategyLater() {
base::Bind(
&WebCacheManager::ReviseAllocationStrategy,
weak_factory_.GetWeakPtr()),
- kReviseAllocationDelayMS);
+ base::TimeDelta::FromMilliseconds(kReviseAllocationDelayMS));
}
void WebCacheManager::FindInactiveRenderers() {
« no previous file with comments | « chrome/browser/process_singleton_linux.cc ('k') | chrome/browser/safe_browsing/client_side_detection_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698