Index: chrome/browser/bookmarks/bookmark_index.cc |
=================================================================== |
--- chrome/browser/bookmarks/bookmark_index.cc (revision 143165) |
+++ chrome/browser/bookmarks/bookmark_index.cc (working copy) |
@@ -112,8 +112,8 @@ |
void BookmarkIndex::SortMatches(const Matches& matches, |
NodeTypedCountPairs* node_typed_counts) const { |
HistoryService* const history_service = profile_ ? |
- HistoryServiceFactory::GetForProfile(profile_, |
sky
2012/06/21 17:14:31
Keep this as it was.
|
- Profile::EXPLICIT_ACCESS) : NULL; |
+ HistoryServiceFactory::GetForProfileIfExists( |
+ profile_, Profile::EXPLICIT_ACCESS) : NULL; |
history::URLDatabase* url_db = history_service ? |
history_service->InMemoryDatabase() : NULL; |