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

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: Created 6 years 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 09316f0c2322740dcc188216fc30c4df0c0c7f8c..19913b0ac23d3ff14a16b6e2f37d8b39a196416e 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -881,8 +881,11 @@ void RenderProcessHostImpl::CreateMessageFilters() {
AddFilter(new GeofencingDispatcherHost(
storage_partition_impl_->GetGeofencingManager()));
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() {

Powered by Google App Engine
This is Rietveld 408576698