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

Unified Diff: components/undo/bookmark_undo_service.h

Issue 1379983002: Supporting undoing bookmark deletion without creating new ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: components/undo/bookmark_undo_service.h
diff --git a/components/undo/bookmark_undo_service.h b/components/undo/bookmark_undo_service.h
index 8ae2eaf9af4f16c58a9a0c0f180e543215900449..90295b66c864cf75847cf4c2bc343454a66d821c 100644
--- a/components/undo/bookmark_undo_service.h
+++ b/components/undo/bookmark_undo_service.h
@@ -11,7 +11,6 @@
#include "components/bookmarks/browser/base_bookmark_model_observer.h"
#include "components/bookmarks/browser/bookmark_node_data.h"
#include "components/keyed_service/core/keyed_service.h"
-#include "components/undo/bookmark_renumber_observer.h"
#include "components/undo/undo_manager.h"
namespace bookmarks {
@@ -24,8 +23,7 @@ class BookmarkModelObserver;
// BookmarkUndoService is owned by the profile, and is responsible for observing
// BookmarkModel changes in order to provide an undo for those changes.
class BookmarkUndoService : public bookmarks::BaseBookmarkModelObserver,
- public KeyedService,
- public BookmarkRenumberObserver {
+ public KeyedService {
public:
BookmarkUndoService();
~BookmarkUndoService() override;
@@ -67,9 +65,7 @@ class BookmarkUndoService : public bookmarks::BaseBookmarkModelObserver,
bookmarks::BookmarkModel* model) override;
void GroupedBookmarkChangesEnded(bookmarks::BookmarkModel* model) override;
- // BookmarkRenumberObserver:
- void OnBookmarkRenumbered(int64 old_id, int64 new_id) override;
-
+ bookmarks::BookmarkModel* model_;
UndoManager undo_manager_;
ScopedObserver<bookmarks::BookmarkModel, bookmarks::BookmarkModelObserver>
scoped_observer_;

Powered by Google App Engine
This is Rietveld 408576698