| 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
|
|
|