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

Unified Diff: chrome/browser/task_management/providers/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/task.cc
diff --git a/chrome/browser/task_management/providers/task.cc b/chrome/browser/task_management/providers/task.cc
index 7d861c973573385477e333d92baeae5cc33f3544..191272180909a1aa939c97b50c0587cabab98c8d 100644
--- a/chrome/browser/task_management/providers/task.cc
+++ b/chrome/browser/task_management/providers/task.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/task_management/providers/task.h"
+#include <stddef.h>
+
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_info_cache.h"
@@ -15,7 +17,7 @@ namespace task_management {
namespace {
// The last ID given to the previously created task.
-int64 g_last_id = 0;
+int64_t g_last_id = 0;
} // namespace
@@ -54,7 +56,7 @@ void Task::Activate() {
}
void Task::Refresh(const base::TimeDelta& update_interval,
- int64 refresh_flags) {
+ int64_t refresh_flags) {
if ((refresh_flags & REFRESH_TYPE_NETWORK_USAGE) == 0)
return;
@@ -68,7 +70,7 @@ void Task::Refresh(const base::TimeDelta& update_interval,
current_byte_count_ = 0;
}
-void Task::OnNetworkBytesRead(int64 bytes_read) {
+void Task::OnNetworkBytesRead(int64_t bytes_read) {
if (current_byte_count_ == -1)
current_byte_count_ = 0;
@@ -83,7 +85,7 @@ bool Task::ReportsSqliteMemory() const {
return GetSqliteMemoryUsed() != -1;
}
-int64 Task::GetSqliteMemoryUsed() const {
+int64_t Task::GetSqliteMemoryUsed() const {
return -1;
}
@@ -91,11 +93,11 @@ bool Task::ReportsV8Memory() const {
return GetV8MemoryAllocated() != -1;
}
-int64 Task::GetV8MemoryAllocated() const {
+int64_t Task::GetV8MemoryAllocated() const {
return -1;
}
-int64 Task::GetV8MemoryUsed() const {
+int64_t Task::GetV8MemoryUsed() const {
return -1;
}
« no previous file with comments | « chrome/browser/task_management/providers/task.h ('k') | chrome/browser/task_management/providers/task_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698