Commit e98d4b92 authored by Reilly Grant's avatar Reilly Grant Committed by Commit Bot

Enable Web Bluetooth on Windows 10

This change makes Web Bluetooth available by default thanks to the
new WinRT-based Bluetooth Low Energy backend.

Bug: 419413
Change-Id: I112349b9ede67c1217cbde6ac6a04a8bea9201b7
Reviewed-on: https://chromium-review.googlesource.com/1184970
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Reviewed-by: default avatarJochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585329}
parent f97b7bec
......@@ -24,6 +24,10 @@
#include "ui/gl/gl_switches.h"
#include "ui/native_theme/native_theme_features.h"
#if defined(OS_WIN)
#include "base/win/windows_version.h"
#endif
using blink::WebRuntimeFeatures;
namespace content {
......@@ -68,11 +72,15 @@ static void SetRuntimeFeatureDefaultsForPlatform() {
WebRuntimeFeatures::EnableNetInfoDownlinkMax(false);
#endif
// Web Bluetooth is shipped on Android, ChromeOS & MacOS, experimental
// otherwise.
// Web Bluetooth is shipped on Android, ChromeOS, MacOS and Windows 10,
// experimental otherwise.
#if defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_MACOSX)
WebRuntimeFeatures::EnableWebBluetooth(true);
#endif
#if defined(OS_WIN)
if (base::win::GetVersion() >= base::win::VERSION_WIN10)
WebRuntimeFeatures::EnableWebBluetooth(true);
#endif
#if defined(OS_CHROMEOS)
WebRuntimeFeatures::EnableForceTallerSelectPopup(true);
......
set noparent
# Web-exposed API changes may require approval from blink API OWNERS.
# See http://www.chromium.org/blink#new-features for details.
file://third_party/blink/API_OWNERS
CONSOLE WARNING: line 80: 'webkitURL' is deprecated. Please use 'URL' instead.
This test documents all interface attributes and methods on the global window object and element instances.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
[INTERFACES]
interface Navigator
interface Notification : EventTarget
getter image
[GLOBAL OBJECT]
PASS successfullyParsed is true
TEST COMPLETE
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