diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-12 03:10:51 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-12 03:10:51 +0000 |
commit | 997a036fbf7139a4342cd7da3163274b02fc67c1 (patch) | |
tree | ef0c5bb4d13ffd0815d647b9fe5cef38ae201120 | |
parent | c18f2650f94c52c577bfdee2f4351e95ff166f6b (diff) | |
download | chromium_src-997a036fbf7139a4342cd7da3163274b02fc67c1.zip chromium_src-997a036fbf7139a4342cd7da3163274b02fc67c1.tar.gz chromium_src-997a036fbf7139a4342cd7da3163274b02fc67c1.tar.bz2 |
Fixes bug were sorting bookmarks wouldn't trigger a save.
BUG=8655
TEST=see bug
Review URL: http://codereview.chromium.org/42103
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11513 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/bookmarks/bookmark_model.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/bookmarks/bookmark_model.cc b/chrome/browser/bookmarks/bookmark_model.cc index 34e179f..6540efe 100644 --- a/chrome/browser/bookmarks/bookmark_model.cc +++ b/chrome/browser/bookmarks/bookmark_model.cc @@ -342,6 +342,9 @@ void BookmarkModel::SortChildren(BookmarkNode* parent) { std::sort(parent->children().begin(), parent->children().end(), SortComparator(collator.get())); + if (store_.get()) + store_->ScheduleSave(); + FOR_EACH_OBSERVER(BookmarkModelObserver, observers_, BookmarkNodeChildrenReordered(this, parent)); } |