Commit 9141cda7 authored by hans@chromium.org's avatar hans@chromium.org

Disable run-time flag for device orientation in test_shell

Device orientation runtime flag must be switched off in test_shell,
as it doesn't provide a DeviceOrientationClient to the Page constructor.
WebKit r64270 triggered the problem by using this NULL client
in the DeviceOrientationController constructor, causing it to crash.
The DeviceOrientationController does not get instantiated when the runtime flag is off.

BUG=None
TEST=test_shell should not crash

Review URL: http://codereview.chromium.org/3066015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54125 0039d316-1c4b-4281-b951-d872f2087c98
parent 990b29ed
......@@ -43,6 +43,9 @@ TestShellWebKitInit::TestShellWebKitInit(bool layout_test_mode) {
WebKit::WebRuntimeFeatures::enableTouch(true);
WebKit::WebRuntimeFeatures::enableIndexedDatabase(true);
// TODO(hwennborg): Enable this once the implementation supports it.
WebKit::WebRuntimeFeatures::enableDeviceOrientation(false);
// Load libraries for media and enable the media player.
FilePath module_path;
WebKit::WebRuntimeFeatures::enableMediaPlayer(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment