don't dereference tooltip_controller if it's null

This commit is contained in:
Heilig Benedek 2018-01-18 20:35:19 +01:00
parent 8d8b8c590d
commit f36fda3f5d

View file

@ -37,6 +37,7 @@ void AtomDesktopNativeWidgetAura::OnWindowActivated(
// as it should be.
// TODO(brenca): Remove this fix when the chromium issue is fixed.
// crbug.com/724538
if (tooltip_controller != nullptr)
tooltip_controller->OnCancelMode(nullptr);
}
}