Commit a8a6b3e6 authored by mukai@chromium.org's avatar mukai@chromium.org

Fixes crash of SetGtkTransientForAura.

The crash report is saying that the crash still happens in Aura.
I still don't get the repro steps, but on possibility is that
the parent exists but WindowTreeHost doesn't exist (missing
root windows? I don't even know that is possible though...).

BUG=373522
R=erg@chromium.org
TEST=none

Review URL: https://codereview.chromium.org/304223012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274341 0039d316-1c4b-4281-b951-d872f2087c98
parent 3ce4adb7
...@@ -104,7 +104,7 @@ int EventFlagsFromGdkState(guint state) { ...@@ -104,7 +104,7 @@ int EventFlagsFromGdkState(guint state) {
} }
void SetGtkTransientForAura(GtkWidget* dialog, aura::Window* parent) { void SetGtkTransientForAura(GtkWidget* dialog, aura::Window* parent) {
if (!parent) if (!parent || !parent->GetHost())
return; return;
gtk_widget_realize(dialog); gtk_widget_realize(dialog);
......
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