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

Unified Diff: sync/sessions/directory_type_debug_info_emitter.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/sessions/data_type_tracker.cc ('k') | sync/sessions/model_type_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/directory_type_debug_info_emitter.cc
diff --git a/sync/sessions/directory_type_debug_info_emitter.cc b/sync/sessions/directory_type_debug_info_emitter.cc
index d6b8721ebf4f0b4ce4b307efdb7f7ca3daf4981e..aadf2dc48c40c017342e990e1d1661f899a203e7 100644
--- a/sync/sessions/directory_type_debug_info_emitter.cc
+++ b/sync/sessions/directory_type_debug_info_emitter.cc
@@ -4,6 +4,8 @@
#include "sync/sessions/directory_type_debug_info_emitter.h"
+#include <stdint.h>
+
#include <vector>
#include "sync/internal_api/public/sessions/status_counters.h"
@@ -69,13 +71,13 @@ void DirectoryTypeDebugInfoEmitter::EmitStatusCountersUpdate() {
return;
syncable::ReadTransaction trans(FROM_HERE, directory_);
- std::vector<int64> result;
+ std::vector<int64_t> result;
directory_->GetMetaHandlesOfType(&trans, type_, &result);
StatusCounters counters;
counters.num_entries_and_tombstones = result.size();
- for (std::vector<int64>::const_iterator it = result.begin();
+ for (std::vector<int64_t>::const_iterator it = result.begin();
it != result.end(); ++it) {
syncable::Entry e(&trans, syncable::GET_BY_HANDLE, *it);
if (!e.GetIsDel()) {
« no previous file with comments | « sync/sessions/data_type_tracker.cc ('k') | sync/sessions/model_type_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698