Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Unified Diff: content/test/layouttest_support.cc

Issue 302553007: Call RenderViewImpl::SetScreenOrientationForTesting to make sure that events are not sent when orie… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add and remove observer inside SetRenderView(). Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index b045da9a3d98955be2334474c3f9d394c126ddf4..bb180249e8612c98471e248ef8a312477fa75b6b 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -102,11 +102,8 @@ void SetMockDeviceOrientationData(const WebDeviceOrientationData& data) {
void SetMockScreenOrientation(
RenderView* render_view,
const blink::WebScreenOrientationType& orientation) {
- static_cast<RenderViewImpl*>(render_view)
- ->SetScreenOrientationForTesting(orientation);
- // FIXME(ostap): Remove this when blink side gets updated.
RendererWebKitPlatformSupportImpl::
- SetMockScreenOrientationForTesting(orientation);
+ SetMockScreenOrientationForTesting(render_view, orientation);
}
void ResetMockScreenOrientation()

Powered by Google App Engine
This is Rietveld 408576698