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

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

Issue 10909046: Boost HQP Scores for Bookmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Simplification. Created 8 years, 3 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
Index: chrome/browser/history/in_memory_url_index.cc
===================================================================
--- chrome/browser/history/in_memory_url_index.cc (revision 154855)
+++ chrome/browser/history/in_memory_url_index.cc (working copy)
@@ -6,6 +6,9 @@
#include "base/file_util.h"
#include "base/utf_string_conversions.h"
+#include "chrome/browser/api/bookmarks/bookmark_service.h"
+#include "chrome/browser/bookmarks/bookmark_model.h"
+#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/history/history_notifications.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/history/url_database.h"
@@ -161,7 +164,9 @@
ScoredHistoryMatches InMemoryURLIndex::HistoryItemsForTerms(
const string16& term_string) {
- return private_data_->HistoryItemsForTerms(term_string);
+ BookmarkService* bookmark_service =
+ BookmarkModelFactory::GetForProfile(profile_);
Peter Kasting 2012/09/05 22:50:06 Nit: Or inline into next statement
mrossetti 2012/09/06 00:33:45 Done.
+ return private_data_->HistoryItemsForTerms(term_string, bookmark_service);
}
// Updating --------------------------------------------------------------------
« no previous file with comments | « no previous file | chrome/browser/history/scored_history_match.h » ('j') | chrome/browser/history/scored_history_match_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698