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

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

Issue 1081923002: Remove PrerenderLocalPredictor, part 5. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prerender-local-predictor-4
Patch Set: Created 5 years, 8 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/visit_database.h ('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_database.cc
diff --git a/components/history/core/browser/visit_database.cc b/components/history/core/browser/visit_database.cc
index eab9d9d68423a457a2f4e901d11d84c9010354aa..6d5819c36621ae11058b478811aaca64af2736e8 100644
--- a/components/history/core/browser/visit_database.cc
+++ b/components/history/core/browser/visit_database.cc
@@ -599,27 +599,4 @@ bool VisitDatabase::MigrateVisitsWithoutDuration() {
return true;
}
-void VisitDatabase::GetBriefVisitInfoOfMostRecentVisits(
- int max_visits,
- std::vector<BriefVisitInfo>* result_vector) {
- result_vector->clear();
-
- sql::Statement statement(GetDB().GetUniqueStatement(
- "SELECT url,visit_time,transition FROM visits "
- "ORDER BY id DESC LIMIT ?"));
-
- statement.BindInt64(0, max_visits);
-
- if (!statement.is_valid())
- return;
-
- while (statement.Step()) {
- BriefVisitInfo info;
- info.url_id = statement.ColumnInt64(0);
- info.time = base::Time::FromInternalValue(statement.ColumnInt64(1));
- info.transition = ui::PageTransitionFromInt(statement.ColumnInt(2));
- result_vector->push_back(info);
- }
-}
-
} // namespace history
« no previous file with comments | « components/history/core/browser/visit_database.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698