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

Unified Diff: chrome/browser/sync_file_system/local/local_file_sync_service.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/sync_file_system/local/local_file_sync_service.cc
diff --git a/chrome/browser/sync_file_system/local/local_file_sync_service.cc b/chrome/browser/sync_file_system/local/local_file_sync_service.cc
index b9c76f7469adef148d748559f66844d76d851da5..d28c141ac5d7acc4817717ed01be00d4e0e594ae 100644
--- a/chrome/browser/sync_file_system/local/local_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/local/local_file_sync_service.cc
@@ -70,8 +70,8 @@ bool LocalFileSyncService::OriginChangeMap::NextOriginToProcess(GURL* origin) {
return false;
}
-int64 LocalFileSyncService::OriginChangeMap::GetTotalChangeCount() const {
- int64 num_changes = 0;
+int64_t LocalFileSyncService::OriginChangeMap::GetTotalChangeCount() const {
+ int64_t num_changes = 0;
for (Map::const_iterator iter = change_count_map_.begin();
iter != change_count_map_.end(); ++iter) {
if (ContainsKey(disabled_origins_, iter->first))
@@ -82,7 +82,8 @@ int64 LocalFileSyncService::OriginChangeMap::GetTotalChangeCount() const {
}
void LocalFileSyncService::OriginChangeMap::SetOriginChangeCount(
- const GURL& origin, int64 changes) {
+ const GURL& origin,
+ int64_t changes) {
if (changes != 0) {
change_count_map_[origin] = changes;
return;
@@ -329,7 +330,7 @@ void LocalFileSyncService::OnChangesAvailableInOrigins(
}
if (!need_notification)
return;
- int64 num_changes = origin_change_map_.GetTotalChangeCount();
+ int64_t num_changes = origin_change_map_.GetTotalChangeCount();
FOR_EACH_OBSERVER(Observer, change_observers_,
OnLocalChangeAvailable(num_changes));
}
@@ -376,7 +377,7 @@ void LocalFileSyncService::DidInitializeFileSystemContext(
DCHECK(backend->change_tracker());
origin_change_map_.SetOriginChangeCount(
app_origin, backend->change_tracker()->num_changes());
- int64 num_changes = origin_change_map_.GetTotalChangeCount();
+ int64_t num_changes = origin_change_map_.GetTotalChangeCount();
FOR_EACH_OBSERVER(Observer, change_observers_,
OnLocalChangeAvailable(num_changes));
}

Powered by Google App Engine
This is Rietveld 408576698