Index: content/shell/renderer/webkit_test_runner.cc |
diff --git a/content/shell/renderer/webkit_test_runner.cc b/content/shell/renderer/webkit_test_runner.cc |
index f6247ba24f21492e87e43206c0f6fce7c7bf2055..8b205503f166e2c69828cfcfc6acfb9bd0b9329e 100644 |
--- a/content/shell/renderer/webkit_test_runner.cc |
+++ b/content/shell/renderer/webkit_test_runner.cc |
@@ -33,6 +33,7 @@ |
#include "content/shell/renderer/shell_render_process_observer.h" |
#include "content/shell/renderer/test_runner/WebTask.h" |
#include "content/shell/renderer/test_runner/WebTestInterfaces.h" |
+#include "content/shell/renderer/test_runner/mock_screen_orientation_client.h" |
#include "content/shell/renderer/test_runner/web_test_proxy.h" |
#include "content/shell/renderer/test_runner/web_test_runner.h" |
#include "net/base/filename_util.h" |
@@ -217,11 +218,16 @@ void WebKitTestRunner::setDeviceOrientationData( |
void WebKitTestRunner::setScreenOrientation( |
const WebScreenOrientationType& orientation) { |
- SetMockScreenOrientation(render_view(), orientation); |
+ MockScreenOrientationClient* mock_client = |
+ proxy()->GetScreenOrientationClientMock(); |
+ mock_client->UpdateDeviceOrientation(render_view()->GetWebView()->mainFrame(), |
+ orientation); |
} |
void WebKitTestRunner::resetScreenOrientation() { |
- ResetMockScreenOrientation(); |
+ MockScreenOrientationClient* mock_client = |
+ proxy()->GetScreenOrientationClientMock(); |
+ mock_client->ResetData(); |
} |
void WebKitTestRunner::didChangeBatteryStatus( |