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

Unified Diff: chrome/browser/history/text_database.cc

Issue 341087: Eliminate QueryOptions::most_recent_visit_only. All non-unittest consumers o... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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 | « chrome/browser/history/text_database.h ('k') | chrome/browser/history/visit_database.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/text_database.cc
===================================================================
--- chrome/browser/history/text_database.cc (revision 30836)
+++ chrome/browser/history/text_database.cc (working copy)
@@ -326,11 +326,9 @@
// break;
GURL url(statement.ColumnString(0));
- if (options.most_recent_visit_only) {
- URLSet::const_iterator found_url = found_urls->find(url);
- if (found_url != found_urls->end())
- continue; // Don't add this duplicate when unique URLs are requested.
- }
+ URLSet::const_iterator found_url = found_urls->find(url);
+ if (found_url != found_urls->end())
+ continue; // Don't add this duplicate.
// Fill the results into the vector (avoid copying the URL with Swap()).
results->resize(results->size() + 1);
« no previous file with comments | « chrome/browser/history/text_database.h ('k') | chrome/browser/history/visit_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698