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

Unified Diff: content/browser/cache_storage/cache_storage_manager.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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: content/browser/cache_storage/cache_storage_manager.cc
diff --git a/content/browser/cache_storage/cache_storage_manager.cc b/content/browser/cache_storage/cache_storage_manager.cc
index 84bb8e93d5f0b5d7f93ab5fee3bcca6f0f7a19ae..4b55bd4aff9b80923cd27e29e4266fffd62734b1 100644
--- a/content/browser/cache_storage/cache_storage_manager.cc
+++ b/content/browser/cache_storage/cache_storage_manager.cc
@@ -4,6 +4,8 @@
#include "content/browser/cache_storage/cache_storage_manager.h"
+#include <stdint.h>
+
#include <map>
#include <string>
@@ -72,7 +74,7 @@ std::vector<CacheStorageUsageInfo> GetAllOriginsUsageOnTaskRunner(
for (const GURL& origin : origins) {
base::FilePath path =
CacheStorageManager::ConstructOriginPath(root_path, origin);
- int64 size = base::ComputeDirectorySize(path);
+ int64_t size = base::ComputeDirectorySize(path);
base::File::Info file_info;
base::Time last_modified;
if (base::GetFileInfo(path, &file_info))
@@ -229,7 +231,7 @@ void CacheStorageManager::GetOriginUsage(
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (IsMemoryBacked()) {
- int64 usage = 0;
+ int64_t usage = 0;
if (ContainsKey(cache_storage_map_, origin_url))
usage = cache_storage_map_[origin_url]->MemoryBackedSize();
callback.Run(usage);
« no previous file with comments | « content/browser/cache_storage/cache_storage_manager.h ('k') | content/browser/cache_storage/cache_storage_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698