Commit d6dec397 authored by Yuichiro Hanada's avatar Yuichiro Hanada Committed by Commit Bot

Fix DCHECK() crash in ArcImeService.

It should use WMHelper::HasInstance() to check there is WMHelper
instance, but WMHelper::GetInstance() was used instead.

Bug: 911857
Change-Id: I46249edd757eff5364863365983be6bef905505c
Reviewed-on: https://chromium-review.googlesource.com/c/1365093Reviewed-by: default avatarTetsui Ohkubo <tetsui@chromium.org>
Commit-Queue: Yuichiro Hanada <yhanada@chromium.org>
Cr-Commit-Position: refs/heads/master@{#614285}
parent 1f236df1
...@@ -54,7 +54,7 @@ class ArcWindowDelegateImpl : public ArcImeService::ArcWindowDelegate { ...@@ -54,7 +54,7 @@ class ArcWindowDelegateImpl : public ArcImeService::ArcWindowDelegate {
~ArcWindowDelegateImpl() override = default; ~ArcWindowDelegateImpl() override = default;
bool IsInArcAppWindow(const aura::Window* window) const override { bool IsInArcAppWindow(const aura::Window* window) const override {
if (!exo::WMHelper::GetInstance()) if (!exo::WMHelper::HasInstance())
return false; return false;
aura::Window* active = exo::WMHelper::GetInstance()->GetActiveWindow(); aura::Window* active = exo::WMHelper::GetInstance()->GetActiveWindow();
for (; window; window = window->parent()) { for (; window; window = window->parent()) {
......
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