[AndroidWebViewShell] Replace rebaseline script with a new version using test_runner.py
[chromium-blink-merge.git] / components / bookmarks / browser / scoped_group_bookmark_actions.cc
blobf962e2961d6c79fadb265d92058a49e9d5b819c0
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.
5 #include "components/bookmarks/browser/scoped_group_bookmark_actions.h"
7 #include "components/bookmarks/browser/bookmark_model.h"
9 namespace bookmarks {
11 ScopedGroupBookmarkActions::ScopedGroupBookmarkActions(BookmarkModel* model)
12 : model_(model) {
13 if (model_)
14 model_->BeginGroupedChanges();
17 ScopedGroupBookmarkActions::~ScopedGroupBookmarkActions() {
18 if (model_)
19 model_->EndGroupedChanges();
22 } // namespace bookmarks