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

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

Issue 963823003: Move InMemoryURLIndex into chrome/browser/autocomplete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shortcut-database
Patch Set: Fixing win_chromium_x64_rel_ng build Created 5 years, 9 months 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 | « components/history/core/browser/url_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/history/core/browser/visit_filter.cc
diff --git a/components/history/core/browser/visit_filter.cc b/components/history/core/browser/visit_filter.cc
index 1d1f15293dea738f0e9e94ebbd4a379e8461c976..75582a25331c618a8cc15dc60b69057c6ec8c6ec 100644
--- a/components/history/core/browser/visit_filter.cc
+++ b/components/history/core/browser/visit_filter.cc
@@ -115,7 +115,7 @@ void VisitFilter::GetTimesInRange(base::Time begin_time_of_the_day,
return;
}
- for (size_t i = 0; i < max_results; ++i) {
+ for (int i = 0; i < static_cast<int>(max_results); ++i) {
times->push_back(
std::make_pair(begin_time_of_the_day - base::TimeDelta::FromDays(i),
end_time_of_the_day - base::TimeDelta::FromDays(i)));
@@ -213,7 +213,7 @@ void VisitFilter::GetTimesOnTheDayOfTheWeek(int day,
if (!max_results)
max_results = kMaxReturnedResults;
- for (size_t i = 0; i < max_results; ++i) {
+ for (int i = 0; i < static_cast<int>(max_results); ++i) {
times->push_back(
std::make_pair(day_base - base::TimeDelta::FromDays(i * 7),
day_base + one_day - base::TimeDelta::FromDays(i * 7)));
@@ -245,7 +245,7 @@ void VisitFilter::GetTimesOnTheSameDayType(bool workday,
} else {
TimeVector vectors[3];
GetTimesOnTheDayOfTheWeek(1, week, max_results, &vectors[0]);
- for (size_t i = 2; i <= 5; ++i) {
+ for (int i = 2; i <= 5; ++i) {
GetTimesOnTheDayOfTheWeek(i, week, max_results, &vectors[(i - 1) % 3]);
UniteTimeVectors(vectors[(i - 2) % 3], vectors[(i - 1) % 3],
&vectors[i % 3]);
« no previous file with comments | « components/history/core/browser/url_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698