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

Unified Diff: chrome/browser/task_management/providers/browser_process_task.cc

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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/task_management/providers/browser_process_task.cc
diff --git a/chrome/browser/task_management/providers/browser_process_task.cc b/chrome/browser/task_management/providers/browser_process_task.cc
index 0f246ba838cd35ff95a51344c3d54a7f116ea197..854e8504371befa77df93a02b8b124556d5be5b4 100644
--- a/chrome/browser/task_management/providers/browser_process_task.cc
+++ b/chrome/browser/task_management/providers/browser_process_task.cc
@@ -56,18 +56,18 @@ BrowserProcessTask::~BrowserProcessTask() {
}
void BrowserProcessTask::Refresh(const base::TimeDelta& update_interval,
- int64 refresh_flags) {
+ int64_t refresh_flags) {
Task::Refresh(update_interval, refresh_flags);
if (reports_v8_stats_ && (refresh_flags & REFRESH_TYPE_V8_MEMORY) != 0) {
allocated_v8_memory_ =
- static_cast<int64>(net::ProxyResolverV8::GetTotalHeapSize());
+ static_cast<int64_t>(net::ProxyResolverV8::GetTotalHeapSize());
used_v8_memory_ =
- static_cast<int64>(net::ProxyResolverV8::GetUsedHeapSize());
+ static_cast<int64_t>(net::ProxyResolverV8::GetUsedHeapSize());
}
if ((refresh_flags & REFRESH_TYPE_SQLITE_MEMORY) != 0)
- used_sqlite_memory_ = static_cast<int64>(sqlite3_memory_used());
+ used_sqlite_memory_ = static_cast<int64_t>(sqlite3_memory_used());
}
Task::Type BrowserProcessTask::GetType() const {
@@ -78,15 +78,15 @@ int BrowserProcessTask::GetChildProcessUniqueID() const {
return 0;
}
-int64 BrowserProcessTask::GetSqliteMemoryUsed() const {
+int64_t BrowserProcessTask::GetSqliteMemoryUsed() const {
return used_sqlite_memory_;
}
-int64 BrowserProcessTask::GetV8MemoryAllocated() const {
+int64_t BrowserProcessTask::GetV8MemoryAllocated() const {
return allocated_v8_memory_;
}
-int64 BrowserProcessTask::GetV8MemoryUsed() const {
+int64_t BrowserProcessTask::GetV8MemoryUsed() const {
return used_v8_memory_;
}

Powered by Google App Engine
This is Rietveld 408576698