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

Unified Diff: components/drive/file_system.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (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
« no previous file with comments | « components/drive/file_system.h ('k') | components/drive/file_system/copy_operation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/file_system.cc
diff --git a/components/drive/file_system.cc b/components/drive/file_system.cc
index 78670b3a692faae0ce9b5791574ac4909ce29ef4..17682a7191820699af5274c2b9fe75092599e4ec 100644
--- a/components/drive/file_system.cc
+++ b/components/drive/file_system.cc
@@ -4,6 +4,8 @@
#include "components/drive/file_system.h"
+#include <stddef.h>
+
#include "base/bind.h"
#include "base/files/file_util.h"
#include "base/prefs/pref_service.h"
@@ -151,11 +153,10 @@ void RunMarkMountedCallback(const MarkMountedCallback& callback,
// Callback for ResourceMetadata::GetLargestChangestamp.
// |callback| must not be null.
-void OnGetLargestChangestamp(
- FileSystemMetadata metadata, // Will be modified.
- const GetFilesystemMetadataCallback& callback,
- const int64* largest_changestamp,
- FileError error) {
+void OnGetLargestChangestamp(FileSystemMetadata metadata, // Will be modified.
+ const GetFilesystemMetadataCallback& callback,
+ const int64_t* largest_changestamp,
+ FileError error) {
DCHECK(!callback.is_null());
metadata.largest_changestamp = *largest_changestamp;
@@ -204,7 +205,7 @@ void GetPathFromResourceIdAfterGetPath(base::FilePath* file_path,
}
bool FreeDiskSpaceIfNeededForOnBlockingPool(internal::FileCache* cache,
- int64 num_bytes) {
+ int64_t num_bytes) {
return cache->FreeDiskSpaceIfNeededFor(num_bytes);
}
@@ -520,7 +521,7 @@ void FileSystem::TouchFile(const base::FilePath& file_path,
}
void FileSystem::TruncateFile(const base::FilePath& file_path,
- int64 length,
+ int64_t length,
const FileOperationCallback& callback) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(!callback.is_null());
@@ -901,7 +902,7 @@ void FileSystem::GetMetadata(
metadata.last_update_check_time = last_update_check_time_;
metadata.last_update_check_error = last_update_check_error_;
- int64* largest_changestamp = new int64(0);
+ int64_t* largest_changestamp = new int64_t(0);
base::PostTaskAndReplyWithResult(
blocking_task_runner_.get(),
FROM_HERE,
@@ -1039,7 +1040,7 @@ void FileSystem::GetPathFromResourceId(const std::string& resource_id,
}
void FileSystem::FreeDiskSpaceIfNeededFor(
- int64 num_bytes,
+ int64_t num_bytes,
const FreeDiskSpaceCallback& callback) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(!callback.is_null());
« no previous file with comments | « components/drive/file_system.h ('k') | components/drive/file_system/copy_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698