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

Unified Diff: components/history/core/browser/android/android_time.h

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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: components/history/core/browser/android/android_time.h
diff --git a/components/history/core/browser/android/android_time.h b/components/history/core/browser/android/android_time.h
index 10e03e35ceb2449fbb44adf746d4fbca385f6827..c3f65e6ba05785dadac50108d7f9725d03b81339 100644
--- a/components/history/core/browser/android/android_time.h
+++ b/components/history/core/browser/android/android_time.h
@@ -5,6 +5,8 @@
#ifndef COMPONENTS_HISTORY_CORE_BROWSER_ANDROID_ANDROID_TIME_H_
#define COMPONENTS_HISTORY_CORE_BROWSER_ANDROID_ANDROID_TIME_H_
+#include <stdint.h>
+
#include "base/time/time.h"
namespace history {
@@ -12,12 +14,12 @@ namespace history {
// Android's system time is the milliseconds since January 1, 1970 00:00:00 UTC,
// the below 2 methods are used convert between base::Time and the milliseconds
// stored in database.
-inline base::Time FromDatabaseTime(int64 milliseconds) {
+inline base::Time FromDatabaseTime(int64_t milliseconds) {
return base::TimeDelta::FromMilliseconds(milliseconds) +
base::Time::UnixEpoch();
}
-inline int64 ToDatabaseTime(const base::Time& time) {
+inline int64_t ToDatabaseTime(const base::Time& time) {
return (time - base::Time::UnixEpoch()).InMilliseconds();
}

Powered by Google App Engine
This is Rietveld 408576698