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

Issue 19287013: Bookmark Undo service for multiple level undo/redo of bookmarks. (Closed)

Created:
7 years, 5 months ago by Tom Cassiotis
Modified:
5 years, 10 months ago
Reviewers:
tfarina, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Bookmark Undo service for multiple level undo/redo of bookmarks. Added BookmarkUndoService that is owned by the profile to provide multi-level undo and redo for bookmark changes. This is a staged commit of a larger feature. The code is not invoked anywhere other than the provided tests so there should be no impact on the application at this time. Further integration will continue in future commits. BUG=126092 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221943

Patch Set 1 : #

Total comments: 20

Patch Set 2 : #

Total comments: 4

Patch Set 3 : Incorporates changes from other CLs. #

Total comments: 14

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+953 lines, -0 lines) Patch
A chrome/browser/undo/bookmark_renumber_observer.h View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/undo/bookmark_undo_service.h View 1 2 3 4 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/undo/bookmark_undo_service.cc View 1 2 3 4 5 6 1 chunk +416 lines, -0 lines 1 comment Download
A chrome/browser/undo/bookmark_undo_service_factory.h View 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/undo/bookmark_undo_service_factory.cc View 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/undo/bookmark_undo_service_test.cc View 1 2 3 4 5 6 7 1 chunk +369 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (1 generated)
Tom Cassiotis
sky@ please take a look. Note: I had originally placed bookmark_undo_* files under c/b/bookmarks/ however ...
7 years, 5 months ago (2013-07-17 14:06:25 UTC) #1
sky
https://codereview.chromium.org/19287013/diff/8001/chrome/browser/undo/bookmark_undo_service.cc File chrome/browser/undo/bookmark_undo_service.cc (right): https://codereview.chromium.org/19287013/diff/8001/chrome/browser/undo/bookmark_undo_service.cc#newcode19 chrome/browser/undo/bookmark_undo_service.cc:19: BookmarkNode* AsMutable(const BookmarkNode* node) { There should be no ...
7 years, 5 months ago (2013-07-18 14:35:41 UTC) #2
Tom Cassiotis
Please take a look. https://codereview.chromium.org/19287013/diff/8001/chrome/browser/undo/bookmark_undo_service.cc File chrome/browser/undo/bookmark_undo_service.cc (right): https://codereview.chromium.org/19287013/diff/8001/chrome/browser/undo/bookmark_undo_service.cc#newcode19 chrome/browser/undo/bookmark_undo_service.cc:19: BookmarkNode* AsMutable(const BookmarkNode* node) { ...
7 years, 5 months ago (2013-07-24 15:37:56 UTC) #3
Tom Cassiotis
https://codereview.chromium.org/19287013/diff/8001/chrome/browser/undo/bookmark_undo_service.h File chrome/browser/undo/bookmark_undo_service.h (right): https://codereview.chromium.org/19287013/diff/8001/chrome/browser/undo/bookmark_undo_service.h#newcode29 chrome/browser/undo/bookmark_undo_service.h:29: class BookmarkIdMap { On 2013/07/24 15:37:56, Tom Cassiotis wrote: ...
7 years, 5 months ago (2013-07-25 13:02:03 UTC) #4
sky
https://codereview.chromium.org/19287013/diff/8001/chrome/browser/undo/bookmark_undo_service.cc File chrome/browser/undo/bookmark_undo_service.cc (right): https://codereview.chromium.org/19287013/diff/8001/chrome/browser/undo/bookmark_undo_service.cc#newcode19 chrome/browser/undo/bookmark_undo_service.cc:19: BookmarkNode* AsMutable(const BookmarkNode* node) { On 2013/07/24 15:37:56, Tom ...
7 years, 4 months ago (2013-07-26 15:29:51 UTC) #5
sky
Can you pull the undomanager chagnes into a separate cl with some tests? https://codereview.chromium.org/19287013/diff/29001/chrome/browser/undo/bookmark_undo_service.cc File ...
7 years, 4 months ago (2013-07-26 15:35:42 UTC) #6
Tom Cassiotis
Scott please take a look. https://codereview.chromium.org/19287013/diff/29001/chrome/browser/undo/bookmark_undo_service.cc File chrome/browser/undo/bookmark_undo_service.cc (right): https://codereview.chromium.org/19287013/diff/29001/chrome/browser/undo/bookmark_undo_service.cc#newcode25 chrome/browser/undo/bookmark_undo_service.cc:25: class RenumberBookmarkIdFunctor { On ...
7 years, 4 months ago (2013-08-06 18:46:11 UTC) #7
sky
https://codereview.chromium.org/19287013/diff/51002/chrome/browser/undo/bookmark_undo_service.cc File chrome/browser/undo/bookmark_undo_service.cc (right): https://codereview.chromium.org/19287013/diff/51002/chrome/browser/undo/bookmark_undo_service.cc#newcode30 chrome/browser/undo/bookmark_undo_service.cc:30: virtual void RenumberBookmarkId(int64 old_id, int64 new_id) = 0; Wouldn't ...
7 years, 4 months ago (2013-08-06 22:04:07 UTC) #8
Tom Cassiotis
Scott welcome back :) https://codereview.chromium.org/19287013/diff/51002/chrome/browser/undo/bookmark_undo_service.cc File chrome/browser/undo/bookmark_undo_service.cc (right): https://codereview.chromium.org/19287013/diff/51002/chrome/browser/undo/bookmark_undo_service.cc#newcode30 chrome/browser/undo/bookmark_undo_service.cc:30: virtual void RenumberBookmarkId(int64 old_id, int64 ...
7 years, 4 months ago (2013-08-19 13:46:59 UTC) #9
sky
https://codereview.chromium.org/19287013/diff/51002/chrome/browser/undo/bookmark_undo_service.cc File chrome/browser/undo/bookmark_undo_service.cc (right): https://codereview.chromium.org/19287013/diff/51002/chrome/browser/undo/bookmark_undo_service.cc#newcode206 chrome/browser/undo/bookmark_undo_service.cc:206: if (original_bookmark_.elements[0].is_url) On 2013/08/19 13:47:00, Tom Cassiotis wrote: > ...
7 years, 4 months ago (2013-08-19 15:38:00 UTC) #10
Tom Cassiotis
sky@ this point was addressed in https://codereview.chromium.org/22855011/ https://codereview.chromium.org/19287013/diff/51002/chrome/browser/undo/bookmark_undo_service.cc File chrome/browser/undo/bookmark_undo_service.cc (right): https://codereview.chromium.org/19287013/diff/51002/chrome/browser/undo/bookmark_undo_service.cc#newcode206 chrome/browser/undo/bookmark_undo_service.cc:206: if (original_bookmark_.elements[0].is_url) ...
7 years, 3 months ago (2013-08-27 14:39:29 UTC) #11
sky
https://codereview.chromium.org/19287013/diff/62001/chrome/browser/undo/bookmark_undo_service.cc File chrome/browser/undo/bookmark_undo_service.cc (right): https://codereview.chromium.org/19287013/diff/62001/chrome/browser/undo/bookmark_undo_service.cc#newcode205 chrome/browser/undo/bookmark_undo_service.cc:205: model->SetURL(node, original_bookmark_.elements[0].url); nit: spacing is off. https://codereview.chromium.org/19287013/diff/62001/chrome/browser/undo/bookmark_undo_service.h File chrome/browser/undo/bookmark_undo_service.h ...
7 years, 3 months ago (2013-08-27 22:24:18 UTC) #12
Tom Cassiotis
Back from some r and r. Scott PTAL. https://codereview.chromium.org/19287013/diff/62001/chrome/browser/undo/bookmark_undo_service.cc File chrome/browser/undo/bookmark_undo_service.cc (right): https://codereview.chromium.org/19287013/diff/62001/chrome/browser/undo/bookmark_undo_service.cc#newcode205 chrome/browser/undo/bookmark_undo_service.cc:205: model->SetURL(node, ...
7 years, 3 months ago (2013-09-04 13:44:43 UTC) #13
sky
LGTM with the following changes https://codereview.chromium.org/19287013/diff/76001/chrome/browser/undo/bookmark_renumber_observer.h File chrome/browser/undo/bookmark_renumber_observer.h (right): https://codereview.chromium.org/19287013/diff/76001/chrome/browser/undo/bookmark_renumber_observer.h#newcode10 chrome/browser/undo/bookmark_renumber_observer.h:10: // Should be called ...
7 years, 3 months ago (2013-09-04 21:52:18 UTC) #14
Tom Cassiotis
https://codereview.chromium.org/19287013/diff/76001/chrome/browser/undo/bookmark_renumber_observer.h File chrome/browser/undo/bookmark_renumber_observer.h (right): https://codereview.chromium.org/19287013/diff/76001/chrome/browser/undo/bookmark_renumber_observer.h#newcode10 chrome/browser/undo/bookmark_renumber_observer.h:10: // Should be called when a bookmark id has ...
7 years, 3 months ago (2013-09-05 12:51:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tom.cassiotis@gmail.com/19287013/89001
7 years, 3 months ago (2013-09-05 12:52:18 UTC) #16
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-05 13:24:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tom.cassiotis@gmail.com/19287013/101001
7 years, 3 months ago (2013-09-05 16:08:06 UTC) #18
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-05 16:39:09 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tom.cassiotis@gmail.com/19287013/133001
7 years, 3 months ago (2013-09-05 17:12:53 UTC) #20
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-05 17:39:23 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tom.cassiotis@gmail.com/19287013/137001
7 years, 3 months ago (2013-09-07 17:57:05 UTC) #22
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-07 18:26:39 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tom.cassiotis@gmail.com/19287013/83001
7 years, 3 months ago (2013-09-07 20:14:38 UTC) #24
commit-bot: I haz the power
Change committed as 221943
7 years, 3 months ago (2013-09-08 03:37:08 UTC) #25
tfarina
5 years, 10 months ago (2015-01-31 00:52:17 UTC) #27
Message was sent while issue was closed.
Not sure why chromium-reviews was not copied on this CL.

https://chromiumcodereview.appspot.com/19287013/diff/83001/chrome/browser/und...
File chrome/browser/undo/bookmark_undo_service.cc (right):

https://chromiumcodereview.appspot.com/19287013/diff/83001/chrome/browser/und...
chrome/browser/undo/bookmark_undo_service.cc:188: original_bookmark_(node) {
Why do you wrap |node| in BookmarkNodeData? If there is no good reason, I think
we could just store it as a pointer to BookmarkNode, no?

Powered by Google App Engine
This is Rietveld 408576698