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

Unified Diff: chrome/renderer/chrome_render_process_observer.cc

Issue 1685883004: Use uint64_t instead of size_t inside the web cache manager code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 10 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 | « chrome/common/render_messages.cc ('k') | components/web_cache/browser/web_cache_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_render_process_observer.cc
diff --git a/chrome/renderer/chrome_render_process_observer.cc b/chrome/renderer/chrome_render_process_observer.cc
index 0ed26044ac45d41acd8cb54efe2edaad33bb0205..6b2c147f14424a9197c9568995d7fef655d4f28c 100644
--- a/chrome/renderer/chrome_render_process_observer.cc
+++ b/chrome/renderer/chrome_render_process_observer.cc
@@ -116,7 +116,12 @@ class RendererResourceDelegate : public content::ResourceDispatcherDelegate {
void InformHostOfCacheStats() {
WebCache::UsageStats stats;
WebCache::getUsageStats(&stats);
- RenderThread::Get()->Send(new ChromeViewHostMsg_UpdatedCacheStats(stats));
+ RenderThread::Get()->Send(new ChromeViewHostMsg_UpdatedCacheStats(
+ static_cast<uint64_t>(stats.minDeadCapacity),
+ static_cast<uint64_t>(stats.maxDeadCapacity),
+ static_cast<uint64_t>(stats.capacity),
+ static_cast<uint64_t>(stats.liveSize),
+ static_cast<uint64_t>(stats.deadSize)));
}
base::WeakPtrFactory<RendererResourceDelegate> weak_factory_;
« no previous file with comments | « chrome/common/render_messages.cc ('k') | components/web_cache/browser/web_cache_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698