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

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: 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
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..dee090c47d237c482e66d5be8bd138ba7c881009 100644
--- a/content/shell/renderer/webkit_test_runner.cc
+++ b/content/shell/renderer/webkit_test_runner.cc
@@ -225,8 +225,9 @@ void WebKitTestRunner::SetScreenOrientation(
const WebScreenOrientationType& orientation) {
MockScreenOrientationClient* mock_client =
proxy()->GetScreenOrientationClientMock();
- mock_client->UpdateDeviceOrientation(render_view()->GetWebView()->mainFrame(),
- orientation);
+ DCHECK(render_view()->GetWebView()->mainFrame()->isWebLocalFrame());
jam 2014/09/23 05:17:14 ditto
dcheng 2014/09/23 05:24:34 Done.
+ mock_client->UpdateDeviceOrientation(
+ render_view()->GetWebView()->mainFrame()->toWebLocalFrame(), orientation);
}
void WebKitTestRunner::ResetScreenOrientation() {

Powered by Google App Engine
This is Rietveld 408576698