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

Unified Diff: content/shell/renderer/webkit_test_runner.cc

Issue 596623002: Fix orientation change callbacks to go through WebLocalFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove DCHECKs Created 6 years, 3 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
« no previous file with comments | « content/shell/renderer/test_runner/mock_screen_orientation_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d1c471f32326e175c833531948721335eff27215..6d008ff316c128a2abd60f27c96afa67f8a1d222 100644
--- a/content/shell/renderer/webkit_test_runner.cc
+++ b/content/shell/renderer/webkit_test_runner.cc
@@ -225,8 +225,8 @@ void WebKitTestRunner::SetScreenOrientation(
const WebScreenOrientationType& orientation) {
MockScreenOrientationClient* mock_client =
proxy()->GetScreenOrientationClientMock();
- mock_client->UpdateDeviceOrientation(render_view()->GetWebView()->mainFrame(),
- orientation);
+ mock_client->UpdateDeviceOrientation(
+ render_view()->GetWebView()->mainFrame()->toWebLocalFrame(), orientation);
}
void WebKitTestRunner::ResetScreenOrientation() {
« no previous file with comments | « content/shell/renderer/test_runner/mock_screen_orientation_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698