Index: chrome/browser/bookmarks/bookmark_storage.cc |
=================================================================== |
--- chrome/browser/bookmarks/bookmark_storage.cc (revision 143165) |
+++ chrome/browser/bookmarks/bookmark_storage.cc (working copy) |
@@ -144,8 +144,8 @@ |
void BookmarkStorage::MigrateFromHistory() { |
// We need to wait until history has finished loading before reading |
// from generated bookmarks file. |
- HistoryService* history = |
sky
2012/06/21 17:14:31
Keep this as it was.
|
- HistoryServiceFactory::GetForProfile(profile_, Profile::EXPLICIT_ACCESS); |
+ HistoryService* history = HistoryServiceFactory::GetForProfileIfExists( |
+ profile_, Profile::EXPLICIT_ACCESS); |
if (!history) { |
// This happens in unit tests. |
if (model_) |