Index: chrome/browser/bookmarks/bookmark_model.cc |
=================================================================== |
--- chrome/browser/bookmarks/bookmark_model.cc (revision 141067) |
+++ chrome/browser/bookmarks/bookmark_model.cc (working copy) |
@@ -152,21 +152,12 @@ |
} |
} |
-// static |
-void BookmarkModel::RegisterUserPrefs(PrefService* prefs) { |
- // Don't sync this, as otherwise, due to a limitation in sync, it |
- // will cause a deadlock (see http://crbug.com/97955). If we truly |
- // want to sync the expanded state of folders, it should be part of |
- // bookmark sync itself (i.e., a property of the sync folder nodes). |
- prefs->RegisterListPref(prefs::kBookmarkEditorExpandedNodes, new ListValue, |
- PrefService::UNSYNCABLE_PREF); |
-} |
- |
-void BookmarkModel::Cleanup() { |
+void BookmarkModel::Shutdown() { |
if (loaded_) |
return; |
- // See comment in Profile shutdown code where this is invoked for details. |
+ // See comment in HistoryService::ShutdownOnUIThread where this is invoked for |
+ // details. It is also called when the BookmarkModel is deleted. |
loaded_signal_.Signal(); |
} |
@@ -179,7 +170,7 @@ |
} |
expanded_state_tracker_.reset(new BookmarkExpandedStateTracker( |
- profile_, prefs::kBookmarkEditorExpandedNodes)); |
+ profile_, prefs::kBookmarkEditorExpandedNodes, this)); |
// Listen for changes to favicons so that we can update the favicon of the |
// node appropriately. |