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

Unified Diff: chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc

Issue 1472083005: Remove kint64min. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint5
Patch Set: rebase 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 | « chrome/browser/net/url_info.cc ('k') | components/invalidation/impl/fake_invalidation_state_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc b/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
index b93728d7430a994d3a41f70e16185cb71818c7e2..8ebcb42534e30805dda8debe16ef12cb186dcd73 100644
--- a/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
+++ b/chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc
@@ -4,6 +4,10 @@
#include "chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h"
+#include <stdint.h>
+
+#include <limits>
+
#include "base/bind.h"
#include "base/callback.h"
#include "base/files/file_util.h"
@@ -353,8 +357,8 @@ void RemoteToLocalSyncer::ContinueAsBackgroundTask(
return;
}
- int64 current_change_id = kint64min;
- int64 latest_change_id = kint64min;
+ int64_t current_change_id = std::numeric_limits<int64_t>::min();
+ int64_t latest_change_id = std::numeric_limits<int64_t>::min();
if (dirty_tracker_->has_synced_details())
current_change_id = dirty_tracker_->synced_details().change_id();
if (latest_dirty_tracker.has_synced_details())
@@ -372,8 +376,8 @@ void RemoteToLocalSyncer::ContinueAsBackgroundTask(
return;
}
- int64 change_id = remote_metadata_->details().change_id();
- int64 latest_change_id = latest_file_metadata.details().change_id();
+ int64_t change_id = remote_metadata_->details().change_id();
+ int64_t latest_change_id = latest_file_metadata.details().change_id();
if (change_id != latest_change_id) {
SyncCompleted(token.Pass(), SYNC_STATUS_RETRY);
return;
« no previous file with comments | « chrome/browser/net/url_info.cc ('k') | components/invalidation/impl/fake_invalidation_state_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698