Disable WebKit MediaStream feature if WebRTC support is disabled (issue #531).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1133 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2013-03-08 00:52:57 +00:00
parent 63f6b6b09a
commit 485244b1bb
2 changed files with 3 additions and 0 deletions

View File

@ -436,6 +436,7 @@ void CefContentBrowserClient::AppendExtraCommandLineSwitches(
// any associated values) if present in the browser command line.
static const char* const kSwitchNames[] = {
switches::kContextSafetyImplementation,
switches::kEnableMediaStream,
switches::kEnableSpeechInput,
switches::kProductVersion,
switches::kUncaughtExceptionStackSize,

View File

@ -282,6 +282,8 @@ void CefContentRendererClient::WebKitInitialized() {
WebKit::WebRuntimeFeatures::enableSpeechInput(
command_line.HasSwitch(switches::kEnableSpeechInput));
WebKit::WebRuntimeFeatures::enableMediaStream(
command_line.HasSwitch(switches::kEnableMediaStream));
worker_script_observer_.reset(new CefWebWorkerScriptObserver());
WebKit::WebWorkerInfo::addScriptObserver(worker_script_observer_.get());