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 0589ae0fd41baea60f25ee2b9d37029e560ae10d..df478dd412a9e2937660a3b6af5118cea6f2e843 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -50,7 +50,6 @@ |
#include "content/browser/background_sync/background_sync_service_impl.h" |
#include "content/browser/bad_message.h" |
#include "content/browser/blob_storage/blob_dispatcher_host.h" |
-#include "content/browser/bluetooth/bluetooth_dispatcher_host.h" |
#include "content/browser/browser_child_process_host_impl.h" |
#include "content/browser/browser_main.h" |
#include "content/browser/browser_main_loop.h" |
@@ -812,8 +811,6 @@ std::unique_ptr<IPC::ChannelProxy> RenderProcessHostImpl::CreateChannelProxy( |
void RenderProcessHostImpl::CreateMessageFilters() { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
- const base::CommandLine& browser_command_line = |
- *base::CommandLine::ForCurrentProcess(); |
AddFilter(new ResourceSchedulerFilter(GetID())); |
MediaInternals* media_internals = MediaInternals::GetInstance(); |
media::AudioManager* audio_manager = |
@@ -1008,17 +1005,6 @@ void RenderProcessHostImpl::CreateMessageFilters() { |
#endif |
AddFilter(new GeofencingDispatcherHost( |
storage_partition_impl_->GetGeofencingManager())); |
- |
- bool enable_web_bluetooth = |
- browser_command_line.HasSwitch(switches::kEnableWebBluetooth); |
-#if defined(OS_CHROMEOS) || defined(OS_ANDROID) |
- enable_web_bluetooth = true; |
-#endif |
- |
- if (enable_web_bluetooth) { |
- bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); |
- AddFilter(bluetooth_dispatcher_host_.get()); |
- } |
} |
void RenderProcessHostImpl::RegisterMojoServices() { |
@@ -2746,8 +2732,9 @@ void RenderProcessHostImpl::GetAudioOutputControllers( |
audio_renderer_host()->GetOutputControllers(callback); |
} |
-BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
- return bluetooth_dispatcher_host_.get(); |
+BluetoothAdapterFactoryWrapper* |
Jeffrey Yasskin
2016/05/13 04:41:59
You can just return a BluetoothAdapterFactoryWrapp
ortuno
2016/05/13 20:11:18
Done.
Jeffrey Yasskin
2016/05/13 21:36:55
You did this in WebBluetoothServiceImpl but not he
ortuno
2016/05/13 22:14:38
Oops. Done.
|
+RenderProcessHostImpl::GetBluetoothAdapterFactoryWrapper() { |
+ return &bluetooth_adapter_factory_wrapper_; |
} |
void RenderProcessHostImpl::RecomputeAndUpdateWebKitPreferences() { |