Index: ui/aura/window.cc |
diff --git a/ui/aura/window.cc b/ui/aura/window.cc |
index c2d515bac08495469464843f782b0114f15c29f4..db48036f84dc875517ff0b947db2daa4eb65fb7f 100644 |
--- a/ui/aura/window.cc |
+++ b/ui/aura/window.cc |
@@ -313,8 +313,11 @@ void Window::SetBoundsInScreen(const gfx::Rect& new_bounds_in_screen, |
if (root) { |
aura::client::ScreenPositionClient* screen_position_client = |
aura::client::GetScreenPositionClient(root); |
- screen_position_client->SetBounds(this, new_bounds_in_screen, dst_display); |
- return; |
+ if (screen_position_client) { |
+ screen_position_client->SetBounds(this, new_bounds_in_screen, |
+ dst_display); |
+ return; |
+ } |
} |
SetBounds(new_bounds_in_screen); |
} |