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

Unified Diff: components/drive/job_queue.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
« no previous file with comments | « components/drive/job_queue.h ('k') | components/drive/job_queue_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/job_queue.cc
diff --git a/components/drive/job_queue.cc b/components/drive/job_queue.cc
index d890abf846428539c3de5a12d78adea7c3e1a1fd..c6a4fe4e3c958669ea1c21c39aa4c462b718d92a 100644
--- a/components/drive/job_queue.cc
+++ b/components/drive/job_queue.cc
@@ -14,9 +14,8 @@ namespace drive {
JobQueue::Item::Item() : batchable(false), size(0) {
}
-JobQueue::Item::Item(JobID id, bool batchable, uint64 size)
- : id(id), batchable(batchable), size(size) {
-}
+JobQueue::Item::Item(JobID id, bool batchable, uint64_t size)
+ : id(id), batchable(batchable), size(size) {}
JobQueue::Item::~Item() {
}
@@ -43,7 +42,7 @@ void JobQueue::PopForRun(int accepted_priority, std::vector<JobID>* jobs) {
return;
// Looks up the queue in the order of priority upto |accepted_priority|.
- uint64 total_size = 0;
+ uint64_t total_size = 0;
bool batchable = true;
for (int priority = 0; priority <= accepted_priority; ++priority) {
while (!queue_[priority].empty()) {
@@ -69,7 +68,7 @@ void JobQueue::GetQueuedJobs(int priority, std::vector<JobID>* jobs) const {
}
}
-void JobQueue::Push(JobID id, int priority, bool batchable, uint64 size) {
+void JobQueue::Push(JobID id, int priority, bool batchable, uint64_t size) {
DCHECK_LT(priority, static_cast<int>(queue_.size()));
queue_[priority].push_back(Item(id, batchable, size));
}
« no previous file with comments | « components/drive/job_queue.h ('k') | components/drive/job_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698