diff options
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_model.cc')
-rw-r--r-- | chrome/browser/bookmarks/bookmark_model.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/chrome/browser/bookmarks/bookmark_model.cc b/chrome/browser/bookmarks/bookmark_model.cc index f75577c..a4e17dc 100644 --- a/chrome/browser/bookmarks/bookmark_model.cc +++ b/chrome/browser/bookmarks/bookmark_model.cc @@ -389,6 +389,15 @@ void BookmarkModel::SetURLStarred(const GURL& url, } } +void BookmarkModel::SetDateGroupModified(const BookmarkNode* parent, + const Time time) { + DCHECK(parent); + AsMutable(parent)->set_date_group_modified(time); + + if (store_.get()) + store_->ScheduleSave(); +} + void BookmarkModel::ResetDateGroupModified(const BookmarkNode* node) { SetDateGroupModified(node, Time()); } @@ -603,15 +612,6 @@ bool BookmarkModel::IsValidIndex(const BookmarkNode* parent, (allow_end && index == parent->GetChildCount())))); } -void BookmarkModel::SetDateGroupModified(const BookmarkNode* parent, - const Time time) { - DCHECK(parent); - AsMutable(parent)->set_date_group_modified(time); - - if (store_.get()) - store_->ScheduleSave(); -} - BookmarkNode* BookmarkModel::CreateBookmarkNode() { history::StarredEntry entry; entry.type = history::StarredEntry::BOOKMARK_BAR; |