summaryrefslogtreecommitdiffstats
path: root/ash/wm
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-03 03:55:24 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-03 03:55:24 +0000
commit2f104df29ba3f925bae5525291e5aaaecf5cc28a (patch)
tree769380c896476f8830d230209543d003efe902dd /ash/wm
parentef14a6d76e0d69cd651eeffef7aed4877fc82036 (diff)
downloadchromium_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.cc3
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);
}