diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-03 03:55:24 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-03 03:55:24 +0000 |
commit | 2f104df29ba3f925bae5525291e5aaaecf5cc28a (patch) | |
tree | 769380c896476f8830d230209543d003efe902dd /ash/wm | |
parent | ef14a6d76e0d69cd651eeffef7aed4877fc82036 (diff) | |
download | chromium_src-2f104df29ba3f925bae5525291e5aaaecf5cc28a.zip chromium_src-2f104df29ba3f925bae5525291e5aaaecf5cc28a.tar.gz chromium_src-2f104df29ba3f925bae5525291e5aaaecf5cc28a.tar.bz2 |
ash: Add some null-checks to understand/debug a crash.
BUG=358266
R=oshima@chromium.org
Review URL: https://codereview.chromium.org/216603009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261270 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm')
-rw-r--r-- | ash/wm/coordinate_conversion.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ash/wm/coordinate_conversion.cc b/ash/wm/coordinate_conversion.cc index 448bd0f..49bad5a 100644 --- a/ash/wm/coordinate_conversion.cc +++ b/ash/wm/coordinate_conversion.cc @@ -32,6 +32,9 @@ aura::Window* GetRootWindowMatching(const gfx::Rect& rect) { } void ConvertPointToScreen(aura::Window* window, gfx::Point* point) { + CHECK(window); + CHECK(window->GetRootWindow()); + CHECK(aura::client::GetScreenPositionClient(window->GetRootWindow())); aura::client::GetScreenPositionClient(window->GetRootWindow())-> ConvertPointToScreen(window, point); } |