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

Unified Diff: chrome/browser/bookmarks/bookmark_model.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_model.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_model.cc (revision 143165)
+++ chrome/browser/bookmarks/bookmark_model.cc (working copy)
@@ -679,9 +679,8 @@
}
if (profile_) {
- HistoryService* history =
- HistoryServiceFactory::GetForProfile(profile_,
sky 2012/06/21 17:14:31 Keep this as it was.
- Profile::EXPLICIT_ACCESS);
+ HistoryService* history = HistoryServiceFactory::GetForProfileIfExists(
+ profile_, Profile::EXPLICIT_ACCESS);
if (history)
history->URLsNoLongerBookmarked(details.changed_urls);
}

Powered by Google App Engine
This is Rietveld 408576698