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

Issue 8909013: Patch AvatarMenuBubbleView crash; only SizeToContents if GetBubbleFrameView. (Closed)

Created:
9 years ago by msw
Modified:
9 years ago
Reviewers:
Peter Kasting, sail, sky
CC:
chromium-reviews, msw+watch_chromium.org, alicet1, tfarina
Visibility:
Public.

Description

Patch AvatarMenuBubbleView crash; only SizeToContents if GetBubbleFrameView. Showing the avatar menu crashes after crrev.com/114330. SizeToContents was called before BubbleFrameView init. This workaround checks GetBubbleFrameView before calling SizeToContents. Also, run OnAvatarMenuModelChanged on Init, not ctor. BUG=106989, 107574 TEST=No crash and doesn't regress crbug.com/106989. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114538

Patch Set 1 #

Patch Set 2 : Run OnAvatarMenuModelChanged on Init, not ctor. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -17 lines) Patch
M chrome/browser/ui/views/avatar_menu_bubble_view.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/avatar_menu_bubble_view.cc View 1 4 chunks +4 lines, -12 lines 1 comment Download
M ui/views/bubble/bubble_delegate.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/bubble/bubble_delegate.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
sail
lgtm
9 years ago (2011-12-14 21:34:34 UTC) #1
msw
Sky, PTAL; thanks! This fixes a top crasher.
9 years ago (2011-12-14 21:41:26 UTC) #2
sky
LGTM
9 years ago (2011-12-14 22:18:38 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/8909013/6
9 years ago (2011-12-14 22:23:27 UTC) #4
Peter Kasting
http://codereview.chromium.org/8909013/diff/6/chrome/browser/ui/views/avatar_menu_bubble_view.cc File chrome/browser/ui/views/avatar_menu_bubble_view.cc (left): http://codereview.chromium.org/8909013/diff/6/chrome/browser/ui/views/avatar_menu_bubble_view.cc#oldcode140 chrome/browser/ui/views/avatar_menu_bubble_view.cc:140: Nit: Don't remove this. (Besides, you didn't remove e.g. ...
9 years ago (2011-12-14 22:41:56 UTC) #5
msw
I'll re-add the blank line (Peter's nit), and investigate a more correct solution in a ...
9 years ago (2011-12-14 22:49:51 UTC) #6
commit-bot: I haz the power
List of reviewers changed. pkasting@chromium.org did a drive-by without LGTM'ing!
9 years ago (2011-12-15 00:02:22 UTC) #7
Peter Kasting
9 years ago (2011-12-15 01:44:38 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld 408576698