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

Unified Diff: sql/connection.cc

Issue 1533283002: Switch to standard integer types in xxx/. (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 | « sql/connection.h ('k') | sql/connection_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/connection.cc
diff --git a/sql/connection.cc b/sql/connection.cc
index 1213a77fa78a0912b726e2d02a508c52a9f23b3d..88acef040d0981fa65d5935651d1409d8dec8c98 100644
--- a/sql/connection.cc
+++ b/sql/connection.cc
@@ -4,6 +4,8 @@
#include "sql/connection.h"
+#include <stddef.h>
+#include <stdint.h>
#include <string.h>
#include "base/bind.h"
@@ -120,22 +122,22 @@ bool ValidAttachmentPoint(const char* attachment_point) {
}
void RecordSqliteMemory10Min() {
- const int64 used = sqlite3_memory_used();
+ const int64_t used = sqlite3_memory_used();
UMA_HISTOGRAM_COUNTS("Sqlite.MemoryKB.TenMinutes", used / 1024);
}
void RecordSqliteMemoryHour() {
- const int64 used = sqlite3_memory_used();
+ const int64_t used = sqlite3_memory_used();
UMA_HISTOGRAM_COUNTS("Sqlite.MemoryKB.OneHour", used / 1024);
}
void RecordSqliteMemoryDay() {
- const int64 used = sqlite3_memory_used();
+ const int64_t used = sqlite3_memory_used();
UMA_HISTOGRAM_COUNTS("Sqlite.MemoryKB.OneDay", used / 1024);
}
void RecordSqliteMemoryWeek() {
- const int64 used = sqlite3_memory_used();
+ const int64_t used = sqlite3_memory_used();
UMA_HISTOGRAM_COUNTS("Sqlite.MemoryKB.OneWeek", used / 1024);
}
@@ -843,7 +845,7 @@ std::string Connection::CollectCorruptionInfo() {
// If the file cannot be accessed it is unlikely that an integrity check will
// turn up actionable information.
const base::FilePath db_path = DbPath();
- int64 db_size = -1;
+ int64_t db_size = -1;
if (!base::GetFileSize(db_path, &db_size) || db_size < 0)
return std::string();
@@ -855,7 +857,7 @@ std::string Connection::CollectCorruptionInfo() {
db_size);
// Only check files up to 8M to keep things from blocking too long.
- const int64 kMaxIntegrityCheckSize = 8192 * 1024;
+ const int64_t kMaxIntegrityCheckSize = 8192 * 1024;
if (db_size > kMaxIntegrityCheckSize) {
debug_info += "integrity_check skipped due to size\n";
} else {
« no previous file with comments | « sql/connection.h ('k') | sql/connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698