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

Unified Diff: content/test/layouttest_support.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: Change ref to pointer 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/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index 1516856643f34abf573a1039138239335eab3601..07602435dad040f1eae011e3cef1c4122b757766 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -15,7 +15,7 @@
#include "components/test_runner/test_common.h"
#include "components/test_runner/web_frame_test_proxy.h"
#include "components/test_runner/web_test_proxy.h"
-#include "content/browser/bluetooth/bluetooth_dispatcher_host.h"
+#include "content/browser/bluetooth/bluetooth_adapter_factory_wrapper.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/common/site_isolation_policy.h"
@@ -359,11 +359,8 @@ void SetBluetoothAdapter(int render_process_id,
static_cast<RenderProcessHostImpl*>(
RenderProcessHost::FromID(render_process_id));
- BluetoothDispatcherHost* dispatcher_host =
- render_process_host_impl->GetBluetoothDispatcherHost();
-
- if (dispatcher_host != NULL)
- dispatcher_host->SetBluetoothAdapterForTesting(std::move(adapter));
+ render_process_host_impl->GetBluetoothAdapterFactoryWrapper()
+ ->SetBluetoothAdapterForTesting(std::move(adapter));
}
void UseSynchronousResizeMode(RenderView* render_view, bool enable) {
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | third_party/WebKit/LayoutTests/resources/bluetooth/bluetooth-helpers.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698