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

Issue 7066034: Fixes couple of issues with bookmarks in wrench menu: (Closed)

Created:
9 years, 7 months ago by sky
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fixes couple of issues with bookmarks in wrench menu: . Crash when deleting via context menu. This was happening because BookmarkMenuDelegate didn't keep a handle to the menu item it added the items to. . If other bookmarks folder is empty it wouldn't show a menu item for (empty). . Deleting the last item in the other folder would prematurely close the menu. . Hit DCHECK when adding empty menu (long standing issue). BUG=83746 TEST=from the wrench menu on windows right click a bookmark, delete it, and make sure you don't crash. R=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86634

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -3 lines) Patch
M chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h View 1 chunk +4 lines, -0 lines 1 comment Download
M chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc View 5 chunks +12 lines, -1 line 0 comments Download
M views/controls/menu/menu_item_view.cc View 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
sky
9 years, 7 months ago (2011-05-24 22:16:01 UTC) #1
Ben Goodger (Google)
9 years, 7 months ago (2011-05-24 22:31:34 UTC) #2
LGTM

http://codereview.chromium.org/7066034/diff/1/chrome/browser/ui/views/bookmar...
File chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h (right):

http://codereview.chromium.org/7066034/diff/1/chrome/browser/ui/views/bookmar...
chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.h:177: // If non-null
this is the |parent| passed to Init and is NOT owned by us.
non-NULL

Powered by Google App Engine
This is Rietveld 408576698