Chromium Code Reviews| Index: content/renderer/renderer_webkitplatformsupport_impl.cc |
| diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc |
| index 433cca128460c80fe3c84eeac8fa56c3714c8fa0..ae94604e6b9eaea7edd1a761378a90e79ecdbeb3 100644 |
| --- a/content/renderer/renderer_webkitplatformsupport_impl.cc |
| +++ b/content/renderer/renderer_webkitplatformsupport_impl.cc |
| @@ -1080,6 +1080,7 @@ void RendererWebKitPlatformSupportImpl::SetMockDeviceMotionDataForTesting( |
| // static |
| void RendererWebKitPlatformSupportImpl::ResetMockScreenOrientationForTesting() |
| { |
| + DCHECK(!(g_test_screen_orientation_controller == 0)); |
|
jochen (gone - plz use gerrit)
2014/06/03 12:52:25
ok, but then it should probably be DCHECK_NE()
ostap
2014/06/03 15:32:32
Unfortunately DCHECK_NE() doesn't work in this cas
|
| g_test_screen_orientation_controller.Get().ResetData(); |
| } |
| @@ -1164,9 +1165,10 @@ void RendererWebKitPlatformSupportImpl::unlockOrientation() { |
| // static |
| void RendererWebKitPlatformSupportImpl::SetMockScreenOrientationForTesting( |
| + RenderView* render_view, |
| blink::WebScreenOrientationType orientation) { |
| g_test_screen_orientation_controller.Get() |
| - .UpdateDeviceOrientation(orientation); |
| + .UpdateDeviceOrientation(render_view, orientation); |
| } |
| //------------------------------------------------------------------------------ |