Commit 85fedecc authored by Ken Rockot's avatar Ken Rockot Committed by Commit Bot

Disable out-of-process Video Capture on Win7

This forces the Video Capture Service to run in the browser process on
Windows 7 (or, theorectically, older unsupported versions of Windows).

Bug: 992328
Change-Id: I89a9a724b656323bb0617dea0f31171ef8e29ad8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1846559Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Commit-Queue: Ken Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/master@{#703837}
parent be43f715
......@@ -5,6 +5,10 @@
#include "content/public/common/content_features.h"
#include "build/build_config.h"
#if defined(OS_WIN)
#include "base/win/windows_version.h"
#endif
namespace features {
// All features in alphabetical order.
......@@ -819,6 +823,10 @@ VideoCaptureServiceConfiguration GetVideoCaptureServiceConfiguration() {
#if defined(OS_ANDROID) || defined(OS_CHROMEOS)
return VideoCaptureServiceConfiguration::kEnabledForBrowserProcess;
#else
#if defined(OS_WIN)
if (base::win::GetVersion() <= base::win::Version::WIN7)
return VideoCaptureServiceConfiguration::kEnabledForBrowserProcess;
#endif
return base::FeatureList::IsEnabled(
features::kRunVideoCaptureServiceInBrowserProcess)
? VideoCaptureServiceConfiguration::kEnabledForBrowserProcess
......
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