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

Unified Diff: chrome/browser/bookmarks/bookmark_index.cc

Issue 10605003: Fixing some more instances where I put in HistoryServiceFactory::GetForProfile which will force cre… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/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;
« no previous file with comments | « no previous file | chrome/browser/bookmarks/bookmark_model.cc » ('j') | chrome/browser/bookmarks/bookmark_model.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698