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

Unified Diff: components/drive/file_system_core_util.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
Index: components/drive/file_system_core_util.cc
diff --git a/components/drive/file_system_core_util.cc b/components/drive/file_system_core_util.cc
index 1e9f00ba994962be56f03c0bd240233e899cdbf5..c7b9bb1d67f2d6fbf7879f55929d5ba53d1cd51d 100644
--- a/components/drive/file_system_core_util.cc
+++ b/components/drive/file_system_core_util.cc
@@ -4,10 +4,12 @@
#include "components/drive/file_system_core_util.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <string>
#include <vector>
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/files/file_path.h"
@@ -33,8 +35,8 @@ namespace {
std::string ReadStringFromGDocFile(const base::FilePath& file_path,
const std::string& key) {
- const int64 kMaxGDocSize = 4096;
- int64 file_size = 0;
+ const int64_t kMaxGDocSize = 4096;
+ int64_t file_size = 0;
if (!base::GetFileSize(file_path, &file_size) || file_size > kMaxGDocSize) {
LOG(WARNING) << "File too large to be a GDoc file " << file_path.value();
return std::string();
« no previous file with comments | « components/drive/file_system/truncate_operation_unittest.cc ('k') | components/drive/file_system_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698