Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Unified Diff: chrome/browser/bookmarks/scoped_group_bookmark_actions.cc

Issue 176563002: Revert r252832: Eliminate Bookmarks dependence to bookmark_undo_utils.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/bookmarks/scoped_group_bookmark_actions.cc
diff --git a/chrome/browser/bookmarks/scoped_group_bookmark_actions.cc b/chrome/browser/bookmarks/scoped_group_bookmark_actions.cc
deleted file mode 100644
index 2dd54ae6477d47f3477ee64f916b3b220ac992b5..0000000000000000000000000000000000000000
--- a/chrome/browser/bookmarks/scoped_group_bookmark_actions.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// 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 "chrome/browser/bookmarks/scoped_group_bookmark_actions.h"
-
-#include "chrome/browser/bookmarks/bookmark_model.h"
-#include "chrome/browser/bookmarks/bookmark_model_factory.h"
-
-ScopedGroupBookmarkActions::ScopedGroupBookmarkActions(Profile* profile)
- : model_(NULL) {
- if (profile)
- model_ = BookmarkModelFactory::GetForProfile(profile);
- if (model_)
- model_->BeginGroupedChanges();
-}
-
-ScopedGroupBookmarkActions::ScopedGroupBookmarkActions(BookmarkModel* model)
- : model_(model) {
- if (model_)
- model_->BeginGroupedChanges();
-}
-
-ScopedGroupBookmarkActions::~ScopedGroupBookmarkActions() {
- if (model_)
- model_->EndGroupedChanges();
-}

Powered by Google App Engine
This is Rietveld 408576698