Index: chrome/browser/bookmarks/bookmark_model.cc |
diff --git a/chrome/browser/bookmarks/bookmark_model.cc b/chrome/browser/bookmarks/bookmark_model.cc |
index c3d0f6b7b2795df29fd7e4af6a78eb894541a878..15137ea7e84e51c0a4ee17434a648ca5f134e463 100644 |
--- a/chrome/browser/bookmarks/bookmark_model.cc |
+++ b/chrome/browser/bookmarks/bookmark_model.cc |
@@ -214,7 +214,7 @@ BookmarkModel::~BookmarkModel() { |
FOR_EACH_OBSERVER(BookmarkModelObserver, observers_, |
BookmarkModelBeingDeleted(this)); |
- if (store_) { |
+ if (store_.get()) { |
// The store maintains a reference back to us. We need to tell it we're gone |
// so that it doesn't try and invoke a method back on us again. |
store_->BookmarkModelDeleted(); |
@@ -796,7 +796,7 @@ void BookmarkModel::RemoveAndDeleteNode(BookmarkNode* delete_me) { |
if (profile_) { |
HistoryService* history = |
HistoryServiceFactory::GetForProfile(profile_, |
- Profile::EXPLICIT_ACCESS); |
+ Profile::EXPLICIT_ACCESS).get(); |
if (history) |
history->URLsNoLongerBookmarked(details.changed_urls); |
} |