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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 787953004: bluetooth: Use BluetoothAdapter in BluetoothDispatcherHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: virtual/override replaced Created 5 years, 11 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/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index fafd773952f52b74baab4d052d8c229f64407e8b..be9b91abfa5f8bd441bf5a3b4286ea968c9612bd 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -892,8 +892,11 @@ void RenderProcessHostImpl::CreateMessageFilters() {
storage_partition_impl_->GetServiceWorkerContext(),
storage_partition_impl_->GetNavigatorConnectContext()));
if (browser_command_line.HasSwitch(
- switches::kEnableExperimentalWebPlatformFeatures))
- AddFilter(new BluetoothDispatcherHost());
+ switches::kEnableExperimentalWebPlatformFeatures)) {
+ scoped_refptr<BluetoothDispatcherHost> bluetooth_dispatcher_host(
+ BluetoothDispatcherHost::Create());
+ AddFilter(bluetooth_dispatcher_host.get());
+ }
}
void RenderProcessHostImpl::RegisterMojoServices() {
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | content/child/bluetooth/bluetooth_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698