1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "components/bookmarks/browser/scoped_group_bookmark_actions.h" 6 7#include "components/bookmarks/browser/bookmark_model.h" 8 9namespace bookmarks { 10 11ScopedGroupBookmarkActions::ScopedGroupBookmarkActions(BookmarkModel* model) 12 : model_(model) { 13 if (model_) 14 model_->BeginGroupedChanges(); 15} 16 17ScopedGroupBookmarkActions::~ScopedGroupBookmarkActions() { 18 if (model_) 19 model_->EndGroupedChanges(); 20} 21 22} // namespace bookmarks 23