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

Issue 485003002: Adding (empty) placeholder button to 'Other bookmarks' folder is unnecessary. (Closed)

Created:
6 years, 4 months ago by Gaja
Modified:
6 years, 4 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Adding (empty) placeholder button to 'Other bookmarks' folder is unnecessary. When user removes the last item (folder/page) from 'Other bookmarks' folder, the folder itself is hidden; hence adding (empty) button is unnecessary. So just close the folder before hiding it. TEST= 1) Launch chrome and bookmark a page or folder into 'Other Bookmarks'. 2) Right-click on the bookmarked page/folder in the 'Other Bookmarks' from Bookmark bar. 3) Choose to 'Cut'/'Delete' and observe. 4) (empty) placeholder button should not remain after 'Other bookmarks' folder is hidden. BUG=257538 R=asvitkine@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291160

Patch Set 1 #

Total comments: 4

Patch Set 2 : Changes as per comments. #

Patch Set 3 : Adding unit test. #

Total comments: 4

Patch Set 4 : Removing performSelector: #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -4 lines) Patch
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm View 1 3 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Gaja
PTAL.
6 years, 4 months ago (2014-08-19 07:55:59 UTC) #1
Alexei Svitkine (slow)
Can you reword your CL description to more closely match the project convention? First line ...
6 years, 4 months ago (2014-08-19 13:45:10 UTC) #2
Gaja
On 2014/08/19 13:45:10, Alexei Svitkine wrote: > Can you reword your CL description to more ...
6 years, 4 months ago (2014-08-19 16:15:39 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/485003002/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm (right): https://codereview.chromium.org/485003002/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm#newcode763 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm:763: if (buttonCount == 0) { Please add a comment ...
6 years, 4 months ago (2014-08-19 17:01:38 UTC) #4
Gaja
Changes in patch set 2, as per the comments. Please review. https://codereview.chromium.org/485003002/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm (right): ...
6 years, 4 months ago (2014-08-20 05:51:32 UTC) #5
Alexei Svitkine (slow)
Change looks good now. Is it possible to add a test for this?
6 years, 4 months ago (2014-08-20 14:46:53 UTC) #6
Gaja
On 2014/08/20 14:46:53, Alexei Svitkine wrote: > Change looks good now. Is it possible to ...
6 years, 4 months ago (2014-08-21 04:41:31 UTC) #7
Gaja
On 2014/08/20 14:46:53, Alexei Svitkine wrote: > Change looks good now. Is it possible to ...
6 years, 4 months ago (2014-08-21 11:33:34 UTC) #8
Alexei Svitkine (slow)
https://codereview.chromium.org/485003002/diff/40001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm (right): https://codereview.chromium.org/485003002/diff/40001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm#newcode1177 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm:1177: [[otherButton target] performSelector:@selector(openBookmarkFolderFromButton:) Nit: Why performSelector: and not just ...
6 years, 4 months ago (2014-08-21 13:41:42 UTC) #9
Gaja
https://codereview.chromium.org/485003002/diff/40001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm (right): https://codereview.chromium.org/485003002/diff/40001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm#newcode1177 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm:1177: [[otherButton target] performSelector:@selector(openBookmarkFolderFromButton:) On 2014/08/21 13:41:42, Alexei Svitkine wrote: ...
6 years, 4 months ago (2014-08-21 14:45:43 UTC) #10
Alexei Svitkine (slow)
LGTM % addressing that comment. Thanks! https://codereview.chromium.org/485003002/diff/40001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm (right): https://codereview.chromium.org/485003002/diff/40001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm#newcode1177 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm:1177: [[otherButton target] performSelector:@selector(openBookmarkFolderFromButton:) ...
6 years, 4 months ago (2014-08-21 14:48:03 UTC) #11
Gaja
On 2014/08/21 14:48:03, Alexei Svitkine wrote: > LGTM % addressing that comment. Thanks! > > ...
6 years, 4 months ago (2014-08-21 14:49:11 UTC) #12
Gaja
The CQ bit was checked by gajendra.n@samsung.com
6 years, 4 months ago (2014-08-21 14:53:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gajendra.n@samsung.com/485003002/60001
6 years, 4 months ago (2014-08-21 14:55:08 UTC) #14
Gaja
https://codereview.chromium.org/485003002/diff/40001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm (right): https://codereview.chromium.org/485003002/diff/40001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm#newcode1177 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm:1177: [[otherButton target] performSelector:@selector(openBookmarkFolderFromButton:) On 2014/08/21 14:48:03, Alexei Svitkine wrote: ...
6 years, 4 months ago (2014-08-21 15:01:24 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-21 19:04:49 UTC) #16
commit-bot: I haz the power
6 years, 4 months ago (2014-08-21 20:16:11 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (60001) as 291160

Powered by Google App Engine
This is Rietveld 408576698