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

Unified Diff: chrome/browser/sync_file_system/drive_backend/tracker_id_set.h

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/drive_backend/tracker_id_set.h
diff --git a/chrome/browser/sync_file_system/drive_backend/tracker_id_set.h b/chrome/browser/sync_file_system/drive_backend/tracker_id_set.h
index 15f4470f146dcec43afb5fb424af5140909924bf..15217d2d09c3f2f4bbf95f6ce770311bfda230c9 100644
--- a/chrome/browser/sync_file_system/drive_backend/tracker_id_set.h
+++ b/chrome/browser/sync_file_system/drive_backend/tracker_id_set.h
@@ -5,9 +5,11 @@
#ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_TRACKER_ID_SET_H_
#define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_TRACKER_ID_SET_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <set>
-#include "base/basictypes.h"
namespace sync_file_system {
namespace drive_backend {
@@ -16,7 +18,7 @@ class FileTracker;
class TrackerIDSet {
public:
- typedef std::set<int64> RawTrackerIDSet;
+ typedef std::set<int64_t> RawTrackerIDSet;
typedef RawTrackerIDSet::iterator iterator;
typedef RawTrackerIDSet::const_iterator const_iterator;
@@ -25,13 +27,13 @@ class TrackerIDSet {
bool has_active() const { return !!active_tracker_; }
void Insert(const FileTracker& tracker);
- void InsertActiveTracker(int64 tracker_id);
- void InsertInactiveTracker(int64 tracker_id);
- void Erase(int64 tracker_id);
- void Activate(int64 tracker_id);
- void Deactivate(int64 tracker_id);
+ void InsertActiveTracker(int64_t tracker_id);
+ void InsertInactiveTracker(int64_t tracker_id);
+ void Erase(int64_t tracker_id);
+ void Activate(int64_t tracker_id);
+ void Deactivate(int64_t tracker_id);
- int64 active_tracker() const { return active_tracker_; }
+ int64_t active_tracker() const { return active_tracker_; }
const RawTrackerIDSet& tracker_set() const { return tracker_ids_; }
iterator begin() { return tracker_ids_.begin(); }
@@ -42,7 +44,7 @@ class TrackerIDSet {
size_t size() const { return tracker_ids_.size(); }
private:
- int64 active_tracker_;
+ int64_t active_tracker_;
RawTrackerIDSet tracker_ids_;
};

Powered by Google App Engine
This is Rietveld 408576698