summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/history_ui.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 23:12:17 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 23:12:17 +0000
commit755bbc4326d8c6c05900d681e232ec7b069e25c2 (patch)
tree34bcacd3235024c11e5f6831302e8081d8bd7def /chrome/browser/dom_ui/history_ui.cc
parent819c9c270122b9d37498dd3f77d779b0cb5346e2 (diff)
downloadchromium_src-755bbc4326d8c6c05900d681e232ec7b069e25c2.zip
chromium_src-755bbc4326d8c6c05900d681e232ec7b069e25c2.tar.gz
chromium_src-755bbc4326d8c6c05900d681e232ec7b069e25c2.tar.bz2
Eliminate QueryOptions::most_recent_visit_only. All non-unittest consumers of this set it to true, so just turn it on unconditionally.
BUG=none TEST=none Review URL: http://codereview.chromium.org/341087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30880 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/history_ui.cc')
-rw-r--r--chrome/browser/dom_ui/history_ui.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/chrome/browser/dom_ui/history_ui.cc b/chrome/browser/dom_ui/history_ui.cc
index e852ee9..8d517f9 100644
--- a/chrome/browser/dom_ui/history_ui.cc
+++ b/chrome/browser/dom_ui/history_ui.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -148,9 +148,6 @@ void BrowsingHistoryHandler::HandleGetHistory(const Value* value) {
options.end_time = base::Time::Now().LocalMidnight();
options.end_time -= base::TimeDelta::FromDays(day - 1);
- // As we're querying per-day, we can turn entry repeats off.
- options.most_recent_visit_only = true;
-
// Need to remember the query string for our results.
search_text_ = std::wstring();
@@ -174,10 +171,8 @@ void BrowsingHistoryHandler::HandleSearchHistory(const Value* value) {
// Set the query ranges for the given month.
history::QueryOptions options = CreateMonthQueryOptions(month);
- // When searching, limit the number of results returned and only show the
- // most recent matches.
+ // When searching, limit the number of results returned.
options.max_count = kMaxSearchResults;
- options.most_recent_visit_only = true;
// Need to remember the query string for our results.
search_text_ = query;