Index: chrome/browser/undo/bookmark_undo_utils.cc |
diff --git a/chrome/browser/undo/bookmark_undo_utils.cc b/chrome/browser/undo/bookmark_undo_utils.cc |
index cf78e5f08a7f1bd56f7b134d811e780db5cc8555..1302b3eb4702b904d48ab9e6e28d5cb0fdc97768 100644 |
--- a/chrome/browser/undo/bookmark_undo_utils.cc |
+++ b/chrome/browser/undo/bookmark_undo_utils.cc |
@@ -33,3 +33,18 @@ ScopedSuspendBookmarkUndo::~ScopedSuspendBookmarkUndo() { |
if (undo_manager) |
undo_manager->ResumeUndoTracking(); |
} |
+ |
+// ScopedGroupBookmarkActions ------------------------------------------------- |
+ |
+ScopedGroupBookmarkActions::ScopedGroupBookmarkActions(Profile* profile) |
+ : profile_(profile) { |
+ UndoManager *undo_manager = GetUndoManager(profile_); |
+ if (undo_manager) |
+ undo_manager->StartGroupingActions(); |
+} |
+ |
+ScopedGroupBookmarkActions::~ScopedGroupBookmarkActions() { |
+ UndoManager *undo_manager = GetUndoManager(profile_); |
+ if (undo_manager) |
+ undo_manager->EndGroupingActions(); |
+} |