Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(799)

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2437943002: Ship WebBluetooth out of origin trial (Closed)
Patch Set: address more comments Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 6cf646955b250812eebeab721dc699202f3fab74..d4107f9585040bd42bd1ef906a8fe2785bcb198c 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -2178,17 +2178,9 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
base::Bind(&device::VibrationManagerImpl::Create));
#endif // defined(OS_ANDROID)
- bool enable_web_bluetooth = base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableWebBluetooth);
-#if defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_MACOSX)
- enable_web_bluetooth = true;
-#endif
-
- if (enable_web_bluetooth) {
- GetInterfaceRegistry()->AddInterface(base::Bind(
- base::IgnoreResult(&RenderFrameHostImpl::CreateWebBluetoothService),
- base::Unretained(this)));
- }
+ GetInterfaceRegistry()->AddInterface(base::Bind(
+ base::IgnoreResult(&RenderFrameHostImpl::CreateWebBluetoothService),
+ base::Unretained(this)));
GetInterfaceRegistry()->AddInterface<media::mojom::InterfaceFactory>(this);
« no previous file with comments | « chrome/browser/web_bluetooth_browsertest.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698