Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2524)

Unified Diff: athena/wm/window_overview_mode.cc

Issue 620663005: Lock screen for Chrome-Athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments resolved Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: athena/wm/window_overview_mode.cc
diff --git a/athena/wm/window_overview_mode.cc b/athena/wm/window_overview_mode.cc
index b8b10314eb9cd03653d8b617e09cfbbad4bd9a59..4bcedbe5529a9a3885309dfb61750cb5dd231b5f 100644
--- a/athena/wm/window_overview_mode.cc
+++ b/athena/wm/window_overview_mode.cc
@@ -430,7 +430,8 @@ class WindowOverviewModeImpl : public WindowOverviewMode,
targeter->FindTargetForLocatedEvent(container_, event));
while (target && target->parent() != container_)
target = target->parent();
- aura::Window* transient_parent = wm::GetTransientParent(target);
+ aura::Window* transient_parent =
+ target ? wm::GetTransientParent(target) : NULL;
return transient_parent ? transient_parent : target;
}

Powered by Google App Engine
This is Rietveld 408576698