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

Unified Diff: chrome/browser/undo/undo_manager.h

Issue 19287013: Bookmark Undo service for multiple level undo/redo of bookmarks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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/undo/undo_manager.h
diff --git a/chrome/browser/undo/undo_manager.h b/chrome/browser/undo/undo_manager.h
index 4031cba74a387eabc5147a2e26c26d8456ceeee9..01acc1585cbf9c8862819f64afd65b256f041c93 100644
--- a/chrome/browser/undo/undo_manager.h
+++ b/chrome/browser/undo/undo_manager.h
@@ -61,11 +61,13 @@ class UndoManager {
void ResumeUndoTracking();
bool IsUndoTrakingSuspended() const;
+ // Remove all undo and redo operations.
+ void Reset();
+
private:
void Undo(bool* performing_indicator,
ScopedVector<UndoGroup>* active_undo_group);
-
- void RemoveAllActions();
+ bool is_user_action() const { return !performing_undo_ && !performing_redo_; }
void RemoveAllRedoActions();
ScopedVector<UndoGroup>* GetActiveUndoGroup();

Powered by Google App Engine
This is Rietveld 408576698