summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/history/history_backend.cc5
-rw-r--r--chrome/browser/history/history_types.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc
index 21c21e3..8934edc 100644
--- a/chrome/browser/history/history_backend.cc
+++ b/chrome/browser/history/history_backend.cc
@@ -1548,7 +1548,8 @@ void HistoryBackend::QueryFilteredURLs(
if (extended_info) {
VisitVector visits;
- db_->GetVisitsForURL(current_data->GetID(), &visits);
+ db_->GetVisitsForURL(
+ db_->GetSegmentRepresentationURL(current_data->GetID()), &visits);
if (visits.size() > 0) {
url.extended_info.total_visits = visits.size();
for (size_t i = 0; i < visits.size(); ++i) {
@@ -1558,7 +1559,7 @@ void HistoryBackend::QueryFilteredURLs(
url.extended_info.last_visit_time = visits[i].visit_time;
}
}
- // TODO(macourteau): implement the url.debug.visits stat.
+ // TODO(macourteau): implement the url.extended_info.visits stat.
}
}
result.push_back(url);
diff --git a/chrome/browser/history/history_types.h b/chrome/browser/history/history_types.h
index 478e38f..0c0fdfb 100644
--- a/chrome/browser/history/history_types.h
+++ b/chrome/browser/history/history_types.h
@@ -202,7 +202,7 @@ typedef std::vector<URLRow> URLRows;
enum VisitSource {
SOURCE_SYNCED = 0, // Synchronized from somewhere else.
SOURCE_BROWSED = 1, // User browsed.
- SOURCE_EXTENSION = 2, // Added by an externsion.
+ SOURCE_EXTENSION = 2, // Added by an extension.
SOURCE_FIREFOX_IMPORTED = 3,
SOURCE_IE_IMPORTED = 4,
SOURCE_SAFARI_IMPORTED = 5,