summaryrefslogtreecommitdiffstats
path: root/webkit/tools
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 19:13:17 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 19:13:17 +0000
commit521c0356810dac743b751c0f96bf605e6b41e880 (patch)
tree95298b17b38fc8e5fe743a6068342b9f45decca9 /webkit/tools
parentfb75acb6eb743447ec3b93df0e1ce232a14bcd0d (diff)
downloadchromium_src-521c0356810dac743b751c0f96bf605e6b41e880.zip
chromium_src-521c0356810dac743b751c0f96bf605e6b41e880.tar.gz
chromium_src-521c0356810dac743b751c0f96bf605e6b41e880.tar.bz2
Media player availability now determined by SetMediaPlayerAvailable.
Instead of relying on the command line, RenderProcess will attempt to load and enable the media player if possible. This is the first in a few changes where I'll be adding in hooks to load media DLLs at runtime if present. Review URL: http://codereview.chromium.org/20253 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9584 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rwxr-xr-xwebkit/tools/test_shell/test_shell.cc8
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) {}