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

Unified Diff: sync/util/time.h

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/util/nigori.cc ('k') | sync/util/time.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/util/time.h
diff --git a/sync/util/time.h b/sync/util/time.h
index f9b0cbc2c3ea88f421aa82044d9f8ce9c169f9a3..b8f32a4d0b091375b7a94c0870d728c85792cab6 100644
--- a/sync/util/time.h
+++ b/sync/util/time.h
@@ -7,9 +7,10 @@
#ifndef SYNC_UTIL_TIME_H_
#define SYNC_UTIL_TIME_H_
+#include <stdint.h>
+
#include <string>
-#include "base/basictypes.h"
#include "base/time/time.h"
#include "sync/base/sync_export.h"
@@ -17,10 +18,10 @@ namespace syncer {
// Converts a time object to the format used in sync protobufs (ms
// since the Unix epoch).
-SYNC_EXPORT int64 TimeToProtoTime(const base::Time& t);
+SYNC_EXPORT int64_t TimeToProtoTime(const base::Time& t);
// Converts a time field from sync protobufs to a time object.
-SYNC_EXPORT base::Time ProtoTimeToTime(int64 proto_t);
+SYNC_EXPORT base::Time ProtoTimeToTime(int64_t proto_t);
SYNC_EXPORT std::string GetTimeDebugString(const base::Time& t);
« no previous file with comments | « sync/util/nigori.cc ('k') | sync/util/time.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698