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

Unified Diff: components/sync_driver/generic_change_processor.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 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
Index: components/sync_driver/generic_change_processor.cc
diff --git a/components/sync_driver/generic_change_processor.cc b/components/sync_driver/generic_change_processor.cc
index b1ffb70684d6728b672faf046be7850a90b952d6..c64aa2f8bf5bf1e5df2ca1dbde074f24853cea08 100644
--- a/components/sync_driver/generic_change_processor.cc
+++ b/components/sync_driver/generic_change_processor.cc
@@ -4,6 +4,8 @@
#include "components/sync_driver/generic_change_processor.h"
+#include <stddef.h>
+
#include <algorithm>
#include <string>
@@ -64,7 +66,7 @@ void SetAttachmentMetadata(const syncer::AttachmentIdList& attachment_ids,
}
syncer::SyncData BuildRemoteSyncData(
- int64 sync_id,
+ int64_t sync_id,
const syncer::BaseNode& read_node,
const syncer::AttachmentServiceProxy& attachment_service_proxy) {
const syncer::AttachmentIdList& attachment_ids = read_node.GetAttachmentIds();
@@ -137,7 +139,7 @@ GenericChangeProcessor::~GenericChangeProcessor() {
void GenericChangeProcessor::ApplyChangesFromSyncModel(
const syncer::BaseTransaction* trans,
- int64 model_version,
+ int64_t model_version,
const syncer::ImmutableChangeRecordList& changes) {
DCHECK(CalledOnValidThread());
DCHECK(syncer_changes_.empty());
@@ -257,10 +259,10 @@ syncer::SyncError GenericChangeProcessor::GetAllSyncDataReturnError(
// TODO(akalin): We'll have to do a tree traversal for bookmarks.
DCHECK_NE(type_, syncer::BOOKMARKS);
- std::vector<int64> child_ids;
+ std::vector<int64_t> child_ids;
root.GetChildIds(&child_ids);
- for (std::vector<int64>::iterator it = child_ids.begin();
+ for (std::vector<int64_t>::iterator it = child_ids.begin();
it != child_ids.end(); ++it) {
syncer::ReadNode sync_child_node(&trans);
if (sync_child_node.InitByIdLookup(*it) !=
« no previous file with comments | « components/sync_driver/generic_change_processor.h ('k') | components/sync_driver/generic_change_processor_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698