Chromium Code Reviews| Index: content/browser/android/content_view_core_impl.cc |
| diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
| index 6495133e3b80a095c50ca74f687e8259f2ec28c0..5ce450ca5760f4c529fc702d5ceb3468aecf3646 100644 |
| --- a/content/browser/android/content_view_core_impl.cc |
| +++ b/content/browser/android/content_view_core_impl.cc |
| @@ -1338,6 +1338,10 @@ void ContentViewCoreImpl::SetAccessibilityEnabledInternal(bool enabled) { |
| } |
| void ContentViewCoreImpl::SendOrientationChangeEventInternal() { |
| + ui::WindowAndroid* windowAndroid = GetWindowAndroid(); |
| + if (windowAndroid) |
|
boliu
2015/07/15 06:38:46
Don't need this null check. window_android_ is nev
gsennton
2015/07/15 19:26:20
Done.
|
| + windowAndroid->UpdateDeviceDisplayInfo(); |
| + |
| RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); |
| if (rwhv) |
| rwhv->UpdateScreenInfo(GetViewAndroid()); |