| Index: chrome/browser/ui/libgtk2ui/gtk2_util.cc
|
| diff --git a/chrome/browser/ui/libgtk2ui/gtk2_util.cc b/chrome/browser/ui/libgtk2ui/gtk2_util.cc
|
| index a2c1e6c801a7e1ff6a15e13b446c17ab090d7aa9..48ead410e21a9d2faf893268f19a27fb1b5eb41c 100644
|
| --- a/chrome/browser/ui/libgtk2ui/gtk2_util.cc
|
| +++ b/chrome/browser/ui/libgtk2ui/gtk2_util.cc
|
| @@ -103,9 +103,10 @@ int EventFlagsFromGdkState(guint state) {
|
| return flags;
|
| }
|
|
|
| -// Set |dialog| as transient for |parent|, which will keep it on top and center
|
| -// it above |parent|.
|
| void SetGtkTransientForAura(GtkWidget* dialog, aura::Window* parent) {
|
| + if (!parent)
|
| + return;
|
| +
|
| gtk_widget_realize(dialog);
|
| GdkWindow* gdk_window = gtk_widget_get_window(dialog);
|
|
|
|
|