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

Unified Diff: chrome/browser/chromeos/file_system_provider/fake_provided_file_system.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/file_system_provider/fake_provided_file_system.cc
diff --git a/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc b/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc
index 03fb9af5c3e63f51904e26898a7e4b1417bc60b1..95d404a21061255c912ebecd28f425d3fd3cc4a4 100644
--- a/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc
+++ b/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h"
+#include <stddef.h>
+
#include "base/thread_task_runner_handle.h"
#include "net/base/io_buffer.h"
@@ -53,7 +55,7 @@ FakeProvidedFileSystem::~FakeProvidedFileSystem() {}
void FakeProvidedFileSystem::AddEntry(const base::FilePath& entry_path,
bool is_directory,
const std::string& name,
- int64 size,
+ int64_t size,
base::Time modification_time,
std::string mime_type,
std::string contents) {
@@ -62,7 +64,7 @@ void FakeProvidedFileSystem::AddEntry(const base::FilePath& entry_path,
metadata->is_directory.reset(new bool(is_directory));
metadata->name.reset(new std::string(name));
- metadata->size.reset(new int64(size));
+ metadata->size.reset(new int64_t(size));
metadata->modification_time.reset(new base::Time(modification_time));
metadata->mime_type.reset(new std::string(mime_type));
@@ -105,7 +107,7 @@ AbortCallback FakeProvidedFileSystem::GetMetadata(
if (fields & ProvidedFileSystemInterface::METADATA_FIELD_NAME)
metadata->name.reset(new std::string(*entry_it->second->metadata->name));
if (fields & ProvidedFileSystemInterface::METADATA_FIELD_SIZE)
- metadata->size.reset(new int64(*entry_it->second->metadata->size));
+ metadata->size.reset(new int64_t(*entry_it->second->metadata->size));
if (fields & ProvidedFileSystemInterface::METADATA_FIELD_MODIFICATION_TIME) {
metadata->modification_time.reset(
new base::Time(*entry_it->second->metadata->modification_time));
@@ -196,7 +198,7 @@ AbortCallback FakeProvidedFileSystem::CloseFile(
AbortCallback FakeProvidedFileSystem::ReadFile(
int file_handle,
net::IOBuffer* buffer,
- int64 offset,
+ int64_t offset,
int length,
const ProvidedFileSystemInterface::ReadChunkReceivedCallback& callback) {
const auto opened_file_it = opened_files_.find(file_handle);
@@ -221,7 +223,7 @@ AbortCallback FakeProvidedFileSystem::ReadFile(
}
// Send the response byte by byte.
- int64 current_offset = offset;
+ int64_t current_offset = offset;
int current_length = length;
// Reading behind EOF is fine, it will just return 0 bytes.
@@ -296,7 +298,7 @@ AbortCallback FakeProvidedFileSystem::MoveEntry(
AbortCallback FakeProvidedFileSystem::Truncate(
const base::FilePath& file_path,
- int64 length,
+ int64_t length,
const storage::AsyncFileUtil::StatusCallback& callback) {
// TODO(mtomasz): Implement it once needed.
return PostAbortableTask(base::Bind(callback, base::File::FILE_OK));
@@ -305,7 +307,7 @@ AbortCallback FakeProvidedFileSystem::Truncate(
AbortCallback FakeProvidedFileSystem::WriteFile(
int file_handle,
net::IOBuffer* buffer,
- int64 offset,
+ int64_t offset,
int length,
const storage::AsyncFileUtil::StatusCallback& callback) {
const auto opened_file_it = opened_files_.find(file_handle);

Powered by Google App Engine
This is Rietveld 408576698