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

Issue 155913004: Eliminate Bookmarks dependence to bookmark_undo_utils.h. (Closed)

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

Description

Eliminate Bookmarks dependence to bookmark_undo_utils.h. Introduced a mechanism through BookmarkModelObserver to inform the bookmark undo service to group a set of bookmark changes instead of an explicit call. This removes the dependence to bookmark_undo_utils that was recently introduced in https://src.chromium.org/viewvc/chrome?view=rev&revision=241973 BUG=126092 TEST=Added a unit_tests test to ensure that the BookmarkModelObserver is notified. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252832

Patch Set 1 : #

Total comments: 1

Patch Set 2 : All grouped action to notify BookmarkModelObservers #

Total comments: 16

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : Fix for Android Unit Tests failing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -48 lines) Patch
M chrome/browser/bookmarks/DEPS View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_model.h View 1 2 3 4 5 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model_observer.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_utils.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_utils.cc View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_utils_unittest.cc View 1 2 3 4 5 3 chunks +52 lines, -2 lines 0 comments Download
A chrome/browser/bookmarks/scoped_group_bookmark_actions.h View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/bookmarks/scoped_group_bookmark_actions.cc View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_drag_drop.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/undo/bookmark_undo_service.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/undo/bookmark_undo_service.cc View 1 2 3 4 5 3 chunks +21 lines, -11 lines 0 comments Download
M chrome/browser/undo/bookmark_undo_utils.h View 1 2 3 4 5 1 chunk +0 lines, -14 lines 0 comments Download
M chrome/browser/undo/bookmark_undo_utils.cc View 1 2 3 4 5 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Tom Cassiotis
Scott please take a look. https://codereview.chromium.org/155913004/diff/30001/chrome/browser/undo/bookmark_undo_service.cc File chrome/browser/undo/bookmark_undo_service.cc (left): https://codereview.chromium.org/155913004/diff/30001/chrome/browser/undo/bookmark_undo_service.cc#oldcode394 chrome/browser/undo/bookmark_undo_service.cc:394: void BookmarkUndoService::OnBookmarkRenumbered(int64 old_id, int64 ...
6 years, 10 months ago (2014-02-05 20:06:08 UTC) #1
sky
https://codereview.chromium.org/155913004/diff/80001/chrome/browser/bookmarks/bookmark_model.h File chrome/browser/bookmarks/bookmark_model.h (right): https://codereview.chromium.org/155913004/diff/80001/chrome/browser/bookmarks/bookmark_model.h#newcode297 chrome/browser/bookmarks/bookmark_model.h:297: void BeginGroupedChanges(); Can you make these private and the ...
6 years, 10 months ago (2014-02-06 17:48:26 UTC) #2
Tom Cassiotis
Scott please take a look. https://codereview.chromium.org/155913004/diff/80001/chrome/browser/bookmarks/bookmark_model.h File chrome/browser/bookmarks/bookmark_model.h (right): https://codereview.chromium.org/155913004/diff/80001/chrome/browser/bookmarks/bookmark_model.h#newcode297 chrome/browser/bookmarks/bookmark_model.h:297: void BeginGroupedChanges(); On 2014/02/06 ...
6 years, 10 months ago (2014-02-21 17:51:44 UTC) #3
tfarina
https://codereview.chromium.org/155913004/diff/80001/chrome/browser/bookmarks/bookmark_utils_unittest.cc File chrome/browser/bookmarks/bookmark_utils_unittest.cc (right): https://codereview.chromium.org/155913004/diff/80001/chrome/browser/bookmarks/bookmark_utils_unittest.cc#newcode26 chrome/browser/bookmarks/bookmark_utils_unittest.cc:26: public: please, sync your checkout. also, please, run clang-format ...
6 years, 10 months ago (2014-02-21 18:46:47 UTC) #4
sky
LGTM https://codereview.chromium.org/155913004/diff/370002/chrome/browser/bookmarks/bookmark_utils_unittest.cc File chrome/browser/bookmarks/bookmark_utils_unittest.cc (right): https://codereview.chromium.org/155913004/diff/370002/chrome/browser/bookmarks/bookmark_utils_unittest.cc#newcode39 chrome/browser/bookmarks/bookmark_utils_unittest.cc:39: void AssertExpectedGroupChanges(int expected_beginning_count, Don't use assert in the ...
6 years, 10 months ago (2014-02-21 20:54:38 UTC) #5
Tom Cassiotis
I addressed the remaining issues. I will delay committing until I am around for it ...
6 years, 10 months ago (2014-02-22 04:29:34 UTC) #6
Tom Cassiotis
The CQ bit was checked by tom.cassiotis@gmail.com
6 years, 10 months ago (2014-02-22 15:04:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tom.cassiotis@gmail.com/155913004/790001
6 years, 10 months ago (2014-02-22 15:04:15 UTC) #8
tfarina
https://codereview.chromium.org/155913004/diff/790001/chrome/browser/bookmarks/bookmark_utils_unittest.cc File chrome/browser/bookmarks/bookmark_utils_unittest.cc (right): https://codereview.chromium.org/155913004/diff/790001/chrome/browser/bookmarks/bookmark_utils_unittest.cc#newcode29 chrome/browser/bookmarks/bookmark_utils_unittest.cc:29: where is my virtual destructor? Looks like you removed ...
6 years, 10 months ago (2014-02-22 15:09:30 UTC) #9
tfarina
The CQ bit was unchecked by tfarina@chromium.org
6 years, 10 months ago (2014-02-22 15:09:35 UTC) #10
tfarina
https://codereview.chromium.org/155913004/diff/790001/chrome/browser/bookmarks/bookmark_utils.h File chrome/browser/bookmarks/bookmark_utils.h (right): https://codereview.chromium.org/155913004/diff/790001/chrome/browser/bookmarks/bookmark_utils.h#newcode113 chrome/browser/bookmarks/bookmark_utils.h:113: class ScopedGroupBookmarkActions { Move this to a separate header ...
6 years, 10 months ago (2014-02-22 15:11:21 UTC) #11
Tom Cassiotis
tfarina@ please take a look. https://codereview.chromium.org/155913004/diff/790001/chrome/browser/bookmarks/bookmark_utils.h File chrome/browser/bookmarks/bookmark_utils.h (right): https://codereview.chromium.org/155913004/diff/790001/chrome/browser/bookmarks/bookmark_utils.h#newcode113 chrome/browser/bookmarks/bookmark_utils.h:113: class ScopedGroupBookmarkActions { On ...
6 years, 10 months ago (2014-02-22 20:54:02 UTC) #12
tfarina
The CQ bit was checked by tfarina@chromium.org
6 years, 10 months ago (2014-02-22 22:25:47 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tom.cassiotis@gmail.com/155913004/1070001
6 years, 10 months ago (2014-02-22 22:25:56 UTC) #14
commit-bot: I haz the power
Change committed as 252832
6 years, 10 months ago (2014-02-23 00:33:54 UTC) #15
Tom Cassiotis
6 years, 10 months ago (2014-02-23 13:21:01 UTC) #16
Message was sent while issue was closed.
I haven't had a change of mine reverted and I'm not sure what the process of
fixing the patch and re-commit is.

I have uploaded a new patch that should address the problem with unit tests on
Android. (The undo code is excluded for Android so the undo specific
EXPECTations should also be excluded)

I can't run the Android unit tests locally and I guess the default trybots here
do not run BookmarkUtilsTest.* for Android.

I'll wait for advice before proceeding.

Powered by Google App Engine
This is Rietveld 408576698