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

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

Issue 1922923002: bluetooth: Move requestDevice to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-separate-tests-request-device
Patch Set: Remove debug log Created 4 years, 7 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 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() {

Powered by Google App Engine
This is Rietveld 408576698