blob: f962e2961d6c79fadb265d92058a49e9d5b819c0 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/bookmarks/browser/scoped_group_bookmark_actions.h"
#include "components/bookmarks/browser/bookmark_model.h"
namespace bookmarks {
ScopedGroupBookmarkActions::ScopedGroupBookmarkActions(BookmarkModel* model)
: model_(model) {
if (model_)
model_->BeginGroupedChanges();
}
ScopedGroupBookmarkActions::~ScopedGroupBookmarkActions() {
if (model_)
model_->EndGroupedChanges();
}
} // namespace bookmarks