Commit 62283d20 authored by qghc36@motorola.com's avatar qghc36@motorola.com

Profiles: Fixed crash when avatar bubble is launched using ctrl+shift+m key...

Profiles: Fixed crash when avatar bubble is launched using ctrl+shift+m key press when there is only one default profile. Incorporated necessary condition check before launching avatar bubble.

BUG=105700
TEST=None


Review URL: http://codereview.chromium.org/8664028

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112864 0039d316-1c4b-4281-b951-d872f2087c98
parent df7a30d0
......@@ -58,7 +58,9 @@ void AvatarMenuButtonGtk::OnSizeAllocate(GtkWidget* widget,
}
void AvatarMenuButtonGtk::ShowAvatarBubble() {
new AvatarMenuBubbleGtk(browser_, widget_.get(), arrow_location_, NULL);
// Only show the avatar bubble if the avatar button is in the title bar.
if (gtk_widget_get_parent_window(widget_.get()))
new AvatarMenuBubbleGtk(browser_, widget_.get(), arrow_location_, NULL);
}
void AvatarMenuButtonGtk::UpdateButtonIcon() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment