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

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

Issue 10399087: Converting BookmarkModel and HistoryService to ProfileKeyedServices. This just performs the initial… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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_expanded_state_tracker.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_expanded_state_tracker.cc (revision 137731)
+++ chrome/browser/bookmarks/bookmark_expanded_state_tracker.cc (working copy)
@@ -10,14 +10,19 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
-BookmarkExpandedStateTracker::BookmarkExpandedStateTracker(Profile* profile,
- const char* path)
+BookmarkExpandedStateTracker::BookmarkExpandedStateTracker(
+ Profile* profile,
+ const char* path,
+ BookmarkModel* bookmark_model)
rpetterson 2012/05/18 22:32:44 We need to pass this in because this is initialize
: profile_(profile),
pref_path_(path) {
- profile_->GetBookmarkModel()->AddObserver(this);
+ bookmark_model->AddObserver(this);
}
BookmarkExpandedStateTracker::~BookmarkExpandedStateTracker() {
+}
+
+void BookmarkExpandedStateTracker::Cleanup() {
sky 2012/05/21 14:23:06 Move this to BookmarkModelBeingDeleted
rpetterson 2012/05/21 18:01:49 Done.
profile_->GetBookmarkModel()->RemoveObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698