Commit 6ac9bbee authored by Saman Sami's avatar Saman Sami Committed by Commit Bot

Fix another segfault in FlingSchedulerAndroid

host_->GetView() might be null.

Bug: 852264
Change-Id: I18af8aecdff6574a00283bae590aa6edacfbef94
Reviewed-on: https://chromium-review.googlesource.com/1100968Reviewed-by: default avatarSahel Sharifymoghaddam <sahel@chromium.org>
Reviewed-by: default avatarDave Tapuska <dtapuska@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567798}
parent 341426ee
......@@ -62,6 +62,8 @@ void FlingSchedulerAndroid::ProgressFlingOnBeginFrameIfneeded(
}
ui::WindowAndroid* FlingSchedulerAndroid::GetRootWindow() {
if (!host_->GetView())
return nullptr;
return host_->GetView()->GetNativeView()->GetWindowAndroid();
}
......
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