Chromium Code Reviews| Index: ui/aura/test/test_screen.cc |
| diff --git a/ui/aura/test/test_screen.cc b/ui/aura/test/test_screen.cc |
| index 266963d9dc36b8f2b26888a3fb870d58a7ed222b..317d3a39f1dd0c7504d7ea8445764ebcec31ea7f 100644 |
| --- a/ui/aura/test/test_screen.cc |
| +++ b/ui/aura/test/test_screen.cc |
| @@ -64,7 +64,8 @@ void TestScreen::SetDisplayRotation(gfx::Display::Rotation rotation) { |
| } |
| display_.set_rotation(rotation); |
| display_.SetScaleAndBounds(display_.device_scale_factor(), new_bounds); |
| - host_->SetRootTransform(GetRotationTransform() * GetUIScaleTransform()); |
| + if (host_) |
| + host_->SetRootTransform(GetRotationTransform() * GetUIScaleTransform()); |
|
sadrul
2015/04/10 22:58:30
We don't do null checks elsewhere in this file. Is
|
| } |
| void TestScreen::SetUIScale(float ui_scale) { |