Chromium Code Reviews| 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 -------------------------------------------------------------------- |