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

Unified Diff: chrome/browser/chromeos/drive/download_handler.cc

Issue 1547093002: Switch to standard integer types in chrome/browser/chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chrome/browser/chromeos/drive/download_handler.cc
diff --git a/chrome/browser/chromeos/drive/download_handler.cc b/chrome/browser/chromeos/drive/download_handler.cc
index 0e6897bff890b5d791e7f89cf9758316d718ad24..551e4af6e5b7d1f9ecf5fad517d2161e3ca0f077 100644
--- a/chrome/browser/chromeos/drive/download_handler.cc
+++ b/chrome/browser/chromeos/drive/download_handler.cc
@@ -4,8 +4,11 @@
#include "chrome/browser/chromeos/drive/download_handler.h"
+#include <stddef.h>
+
#include "base/bind.h"
#include "base/files/file_util.h"
+#include "base/macros.h"
#include "base/strings/string_util.h"
#include "base/supports_user_data.h"
#include "base/thread_task_runner_handle.h"
@@ -251,15 +254,15 @@ void DownloadHandler::SetFreeDiskSpaceDelayForTesting(
free_disk_space_delay_ = delay;
}
-int64 DownloadHandler::CalculateRequestSpace(
+int64_t DownloadHandler::CalculateRequestSpace(
const DownloadManager::DownloadVector& downloads) {
- int64 request_space = 0;
+ int64_t request_space = 0;
for (const auto* download : downloads) {
if (download->IsDone())
continue;
- const int64 total_bytes = download->GetTotalBytes();
+ const int64_t total_bytes = download->GetTotalBytes();
// Skip unknown size download. Since drive cache tries to keep
// drive::internal::kMinFreeSpaceInBytes, we can continue download with
// using the space temporally.
« no previous file with comments | « chrome/browser/chromeos/drive/download_handler.h ('k') | chrome/browser/chromeos/drive/download_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698