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

Unified Diff: sync/engine/update_applicator.cc

Issue 1545553003: Switch to standard integer types in sync/. (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 | « sync/engine/update_applicator.h ('k') | sync/internal_api/attachments/attachment_downloader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/update_applicator.cc
diff --git a/sync/engine/update_applicator.cc b/sync/engine/update_applicator.cc
index e8731cecf4c06fe29691447f156d1bb81a8ea848..56996398f2257c83d35740b296bc2ed2d90eb4d7 100644
--- a/sync/engine/update_applicator.cc
+++ b/sync/engine/update_applicator.cc
@@ -4,6 +4,8 @@
#include "sync/engine/update_applicator.h"
+#include <stdint.h>
+
#include <vector>
#include "base/logging.h"
@@ -45,14 +47,14 @@ UpdateApplicator::~UpdateApplicator() {
// access to all the Nigori keys. There's nothing we can do about them here.
void UpdateApplicator::AttemptApplications(
syncable::WriteTransaction* trans,
- const std::vector<int64>& handles) {
- std::vector<int64> to_apply = handles;
+ const std::vector<int64_t>& handles) {
+ std::vector<int64_t> to_apply = handles;
DVLOG(1) << "UpdateApplicator running over " << to_apply.size() << " items.";
while (!to_apply.empty()) {
- std::vector<int64> to_reapply;
+ std::vector<int64_t> to_reapply;
- for (std::vector<int64>::iterator i = to_apply.begin();
+ for (std::vector<int64_t>::iterator i = to_apply.begin();
i != to_apply.end(); ++i) {
syncable::MutableEntry entry(trans, syncable::GET_BY_HANDLE, *i);
UpdateAttemptResponse result = AttemptToUpdateEntry(
« no previous file with comments | « sync/engine/update_applicator.h ('k') | sync/internal_api/attachments/attachment_downloader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698