diff options
Diffstat (limited to 'webkit/tools/test_shell/test_shell.cc')
-rwxr-xr-x | webkit/tools/test_shell/test_shell.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc index e6455a8..aa9dca7 100755 --- a/webkit/tools/test_shell/test_shell.cc +++ b/webkit/tools/test_shell/test_shell.cc @@ -541,8 +541,14 @@ void TestShell::SetFocus(WebWidgetHost* host, bool enable) { namespace webkit_glue { +static bool g_media_player_available = false; + +void SetMediaPlayerAvailable(bool value) { + g_media_player_available = value; +} + bool IsMediaPlayerAvailable() { - return CommandLine::ForCurrentProcess()->HasSwitch(test_shell::kEnableVideo); + return g_media_player_available; } void PrefetchDns(const std::string& hostname) {} |