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

Unified Diff: components/history/core/browser/visit_database.cc

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/visit_database.cc
diff --git a/components/history/core/browser/visit_database.cc b/components/history/core/browser/visit_database.cc
index 5d47a5a5ba482e9c45d038979c424bc839850bf4..3db52cd51a5385f53b92d05f7143aa007b02fbfb 100644
--- a/components/history/core/browser/visit_database.cc
+++ b/components/history/core/browser/visit_database.cc
@@ -4,6 +4,9 @@
#include "components/history/core/browser/visit_database.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <algorithm>
#include <limits>
#include <map>
@@ -311,11 +314,11 @@ bool VisitDatabase::GetAllVisitsInRange(base::Time begin_time,
"ORDER BY visit_time LIMIT ?"));
// See GetVisibleVisitsInRange for more info on how these times are bound.
- int64 end = end_time.ToInternalValue();
+ int64_t end = end_time.ToInternalValue();
statement.BindInt64(0, begin_time.ToInternalValue());
- statement.BindInt64(1, end ? end : std::numeric_limits<int64>::max());
- statement.BindInt64(2,
- max_results ? max_results : std::numeric_limits<int64>::max());
+ statement.BindInt64(1, end ? end : std::numeric_limits<int64_t>::max());
+ statement.BindInt64(
+ 2, max_results ? max_results : std::numeric_limits<int64_t>::max());
return FillVisitVector(statement, visits);
}
@@ -336,13 +339,13 @@ bool VisitDatabase::GetVisitsInRangeForTransition(
"ORDER BY visit_time LIMIT ?"));
// See GetVisibleVisitsInRange for more info on how these times are bound.
- int64 end = end_time.ToInternalValue();
+ int64_t end = end_time.ToInternalValue();
statement.BindInt64(0, begin_time.ToInternalValue());
- statement.BindInt64(1, end ? end : std::numeric_limits<int64>::max());
+ statement.BindInt64(1, end ? end : std::numeric_limits<int64_t>::max());
statement.BindInt(2, ui::PAGE_TRANSITION_CORE_MASK);
statement.BindInt(3, transition);
- statement.BindInt64(4,
- max_results ? max_results : std::numeric_limits<int64>::max());
+ statement.BindInt64(
+ 4, max_results ? max_results : std::numeric_limits<int64_t>::max());
return FillVisitVector(statement, visits);
}
« no previous file with comments | « components/history/core/browser/visit_database.h ('k') | components/history/core/browser/visit_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698