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

Unified Diff: chrome/browser/ui/gtk/avatar_menu_button_gtk.cc

Issue 8664028: Profiles: Fixed crash when avatar bubble is launched using ctrl+shift+m with only default profile (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed review comments Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/avatar_menu_button_gtk.cc
diff --git a/chrome/browser/ui/gtk/avatar_menu_button_gtk.cc b/chrome/browser/ui/gtk/avatar_menu_button_gtk.cc
index c96a2ced64cc083e02f219c254003b7f8827fb1f..98b2e18e0bcd30557824074259bf56e6037cc8fe 100644
--- a/chrome/browser/ui/gtk/avatar_menu_button_gtk.cc
+++ b/chrome/browser/ui/gtk/avatar_menu_button_gtk.cc
@@ -49,5 +49,7 @@ gboolean AvatarMenuButtonGtk::OnButtonPressed(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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698