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

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

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.h
===================================================================
--- chrome/browser/bookmarks/bookmark_expanded_state_tracker.h (revision 137731)
+++ chrome/browser/bookmarks/bookmark_expanded_state_tracker.h (working copy)
@@ -20,9 +20,15 @@
public:
typedef std::set<const BookmarkNode*> Nodes;
- BookmarkExpandedStateTracker(Profile* profile, const char* path);
+ BookmarkExpandedStateTracker(Profile* profile,
+ const char* path,
+ BookmarkModel* bookmark_model);
virtual ~BookmarkExpandedStateTracker();
+ // The bookmark model is already considered deleted by the time we enter the
+ // dtor so we perform some cleanup first.
+ void Cleanup();
+
// The set of expanded nodes.
void SetExpandedNodes(const Nodes& nodes);
Nodes GetExpandedNodes();

Powered by Google App Engine
This is Rietveld 408576698