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

Issue 1550173002: Fix bug in not exiting menu when choosing 'delete' (Closed)

Created:
4 years, 12 months ago by sky
Modified:
4 years, 11 months ago
Reviewers:
Devlin
CC:
chromium-reviews, tfarina, noyau+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix bug in not exiting menu when choosing 'delete' This case fixes clicking on an item with no children to show the menu, then right clicking on the (empty) text and choosing 'delete'. In this case 'delete' removes the item, so the menu needs to close. BUG=571362 TEST=create folder with no bookmarks on the bookmark bar, click on folder so it opens, right click in '(empty)' area, and choose delete. The menu should close. R=rdevlin.cronin@chromium.org Committed: https://crrev.com/bdbc8d3f7300ab21ad9c53c94135821558cc7092 Cr-Commit-Position: refs/heads/master@{#367100}

Patch Set 1 #

Total comments: 6

Patch Set 2 : add test coverage #

Total comments: 4

Patch Set 3 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -29 lines) Patch
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc View 1 3 chunks +26 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_menu_delegate_unittest.cc View 1 2 2 chunks +52 lines, -9 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
sky
4 years, 12 months ago (2015-12-29 00:23:00 UTC) #1
Devlin
Any chance of there being a test in bookmark_bar_view_test.cc that could be modified/copied and altered ...
4 years, 12 months ago (2015-12-29 00:59:34 UTC) #2
sky
I added test coverage of the close_on_remove value, which is what matters here. https://codereview.chromium.org/1550173002/diff/1/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc File ...
4 years, 11 months ago (2015-12-29 17:11:28 UTC) #3
Devlin
lgtm, thanks for the tests :) https://codereview.chromium.org/1550173002/diff/20001/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h File chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h (right): https://codereview.chromium.org/1550173002/diff/20001/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h#newcode151 chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h:151: // Returns the ...
4 years, 11 months ago (2015-12-29 19:30:05 UTC) #4
sky
https://codereview.chromium.org/1550173002/diff/20001/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h File chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h (right): https://codereview.chromium.org/1550173002/diff/20001/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h#newcode151 chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h:151: // Returns the value to supply to creation of ...
4 years, 11 months ago (2015-12-29 19:38:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1550173002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1550173002/40001
4 years, 11 months ago (2015-12-29 19:39:20 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2015-12-29 20:37:25 UTC) #9
commit-bot: I haz the power
4 years, 11 months ago (2015-12-29 20:38:10 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bdbc8d3f7300ab21ad9c53c94135821558cc7092
Cr-Commit-Position: refs/heads/master@{#367100}

Powered by Google App Engine
This is Rietveld 408576698