mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-21 06:30:54 +01:00
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:
parent
63f6b6b09a
commit
485244b1bb
@ -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,
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user